CVE-2024-45388Hoverfly
High 7.5 No auth needed
Follow: this CVE · Hoverfly · Hoverfly We alert you by email or Slack (account required).
- Priority
- 61
- CVSS 3.1
- 7.5
- EPSS
- 8.2% probability of exploitation in 30 days · percentile 96
- Auth required
- No
- Published
- Sep 2, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
Hoverfly is a lightweight service virtualization/ API simulation / API mocking tool for developers and testers. The `/api/v2/simulation` POST handler allows users to create new simulation views from the contents of a user-specified file. This feature can be abused by an attacker to read arbitrary files from the Hoverfly server. Note that, although the code prevents absolute paths from being specified, an attacker can escape out of the `hf.Cfg.ResponsesBodyFilesPath` base path by using `../` segments and reach any arbitrary files. This issue was found using the Uncontrolled data used in path expression CodeQL query for python. Users are advised to make sure the final path (`filepath.Join(hf.Cfg.ResponsesBodyFilesPath, filePath)`) is contained within the expected base path (`filepath.Join(hf.Cfg.ResponsesBodyFilesPath, "/")`). This issue is also tracked as GHSL-2023-274.
What to do
- Apply the vendor's security update for Hoverfly.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/spectolabs/hoverfly |
< 1.10.3 |
1.10.3 |
go get github.com/spectolabs/hoverfly@v1.10.3 |
| Go | github.com/SpectoLabs/hoverfly |
< 1.10.3 |
1.10.3 |
go get github.com/SpectoLabs/hoverfly@v1.10.3 |
| Go | github.com/SpectoLabs/hoverfly |
< 1.10.3 |
1.10.3 |
go get github.com/SpectoLabs/hoverfly@v1.10.3 |
Per OSV / GitHub Advisories (GHSA-6xx4-x46f-f897, GO-2024-3108). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hoverfly | hoverfly | < 1.10.3 |
Official sources
References
Links published by the sources. Open them with care.
- codeql.github.com Not Applicable
- github.com Release Notes
- github.com Exploit Vendor Advisory
- github.com Product