Arbitrary file read in the `/api/v2/simulation` endpoint in hoverfly (`GHSL-2023-274`)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| SpectoLabs | hoverfly | before 1.10.3 | 1.10.3 | Patch available | CNA |
| — | github.com/spectolabs/hoverfly (Go) | before 1.10.3 | 1.10.3 | Patch available | GHSA-6xx4-x46f-f897 |
| — | github.com/SpectoLabs/hoverfly (Go) | before 1.10.3 | 1.10.3 | Patch available | GHSA-6xx4-x46f-f897 |
- hoverfly VendorSpectoLabs Affected before 1.10.3 Fixed in 1.10.3 Patch available CNA
- github.com/spectolabs/hoverfly (Go) Vendor— Affected before 1.10.3 Fixed in 1.10.3 Patch available GHSA-6xx4-x46f-f897
- github.com/SpectoLabs/hoverfly (Go) Vendor— Affected before 1.10.3 Fixed in 1.10.3 Patch available GHSA-6xx4-x46f-f897
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:hoverfly:hoverfly:*:*:*:*:*:*:*:* | before 1.10.3 | Vulnerable | SpectoLabs |
- cpe:2.3:a:hoverfly:hoverfly:*:*:*:*:*:*:*:* Versions before 1.10.3 Vulnerable ·SpectoLabs
Remediation
- Fix · CNA hoverfly (SpectoLabs) Fixed in 1.10.3
- Fix · GHSA-6xx4-x46f-f897 github.com/spectolabs/hoverfly (Go) Fixed in 1.10.3 Advisory →
- Fix · GHSA-6xx4-x46f-f897 github.com/SpectoLabs/hoverfly (Go) Fixed in 1.10.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-45388
- 2026-10-03 Alias added: GHSA-6xx4-x46f-f897
References
More SpectoLabs Hoverfly vulnerabilities
- TI-2025-33966 Improper input validation in SpectoLabs hoverfly CVSS 3.1CRITICAL 9.8
- TI-2025-34185 Hoverfly's WebSocket endpoint `/api/v2/ws/logs` reachable without authentication even when --auth is enabled. CVSS 4.0HIGH 7.8
Sources
- CVE-2024-45388 · CVE Program
- CVE-2024-45388 · NVD
- FIRST EPSS
- GHSA-6xx4-x46f-f897 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences