CVE-2024-45388
Arbitrary file read in the `/api/v2/simulation` endpoint in hoverfly (`GHSL-2023-274`)
Basic Information
- CVE State
- PUBLISHED
- Reserved Date
- August 28, 2024
- Published Date
- September 02, 2024
- Last Updated
- September 03, 2024
- Vendor
- SpectoLabs
- Product
- hoverfly
- 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.
- Tags
- Score
- 91.50% (Percentile: 99.64%) as of 2025-06-12
- Exploitation
- poc
- Automatable
- Yes
- Technical Impact
- partial
- Exploited in the Wild
- Yes (2025-05-15 00:00:00 UTC) Source
python
nuclei_scanner
CVSS Scores
CVSS v3.1
7.5 - HIGH
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score
SSVC Information
Exploit Status
References
https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897
https://codeql.github.com/codeql-query-help/go/go-path-injection
https://github.com/SpectoLabs/hoverfly/releases/tag/v1.10.3
https://github.com/spectolabs/hoverfly/blob/15d6ee9ea4e0de67aec5a41c28d21dc147243da0/core/handlers/v2/simulation_handler.go#L87
Known Exploited Vulnerability Information
Source | Added Date |
---|---|
The Shadowserver (via CIRCL) | 2025-05-15 00:00:00 UTC |
Scanner Integrations
Scanner | URL | Date Detected |
---|---|---|
Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-45388.yaml | 2025-04-26 00:00:00 UTC |
Timeline
-
CVE ID Reserved
-
CVE Published to Public
-
Detected by Nuclei
-
Added to KEVIntel