CVE-2024-45388
HIGH 7.5CVSS 3.1Hoverfly allows an arbitrary file read in the `/api/v2/simulation` endpoint (`GHSL-2023-274`)
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.
- Published
- 2 Sep 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-200CWE-22
- Also known as
- GHSA-6xx4-x46f-f897GO-2024-3108
- Sources
- NVDJSONOSV GHSA-6xx4-x46f-f897JSONOSV GO-2024-3108JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hoverfly | hoverflycpe:2.3:a:hoverfly:hoverfly:*:*:*:*:*:*:*:* |
< 1.10.3 | 1.10.3 |
| OSV | Go | github.com/spectolabs/hoverfly | < 1.10.3 | 1.10.3 |
| OSV | Go | github.com/SpectoLabs/hoverfly | < 1.10.3 | 1.10.3 |
References
- https://codeql.github.com/codeql-query-help/go/go-path-injection · Not Applicable, WEB
- https://github.com/SpectoLabs/hoverfly/releases/tag/v1.10.3 · Release Notes, WEB
- https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897 · Exploit, Vendor Advisory, WEB, ADVISORY
- https://github.com/spectolabs/hoverfly/blob/15d6ee9ea4e0de67aec5a41c28d21dc147243da0/core/handlers/v2/simulation_handler.go#L87 · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-45388 · ADVISORY
- https://github.com/SpectoLabs/hoverfly · PACKAGE
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 2 Sep 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Sep 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 3 Sep 2024)