# CVE-2024-45388: Arbitrary file read in the `/api/v2/simulation` endpoint in hoverfly (`GHSL-2023-274`)

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 55.6%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-02T16:07:17.599Z
- Modified: 2026-06-17T07:54:07.090Z
- Also known as: GHSA-6xx4-x46f-f897, GO-2024-3108
- Weaknesses: CWE-22, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- SpectoLabs hoverfly: < 1.10.3; before 1.10.3
- github.com/spectolabs/hoverfly (Go): before 1.10.3
- hoverfly hoverfly: before 1.10.3

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897> (exploit, advisory, vendor-advisory, web)
- <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/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)

## Sources

- CVE List: [CVE-2024-45388](https://www.cve.org/CVERecord?id=CVE-2024-45388), CVE Terms of Use, modified 2024-09-03
- GitHub Advisory Database: [GHSA-6xx4-x46f-f897](https://github.com/advisories/GHSA-6xx4-x46f-f897), CC-BY-4.0, modified 2024-09-06
- Go Vulnerability Database: [GO-2024-3108](https://pkg.go.dev/vuln/GO-2024-3108), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-45388](https://nvd.nist.gov/vuln/detail/CVE-2024-45388), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-45388 · Whole record: https://cve.day/CVE-2024-45388.json · Rebuilt by cve.day 2026-11-25T22:58:44.999Z
