CVE-2024-45388
Published: 02 September 2024
Summary
CVE-2024-45388 is a high-severity Exposure of Sensitive Information to an Unauthorized Actor (CWE-200) vulnerability in Hoverfly Hoverfly. Its CVSS base score is 7.5 (High).
Operationally, ranked in the top 0.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
Hoverfly, an open-source service virtualization and API mocking tool, contains a path traversal vulnerability in its /api/v2/simulation POST handler. The endpoint accepts a user-specified file path to load simulation data and joins it with a configured base directory (hf.Cfg.ResponsesBodyFilesPath) without properly preventing directory traversal sequences, allowing access to files outside the intended folder despite a check that blocks absolute paths. The flaw was identified via a CodeQL query for uncontrolled data used in path expressions and is tracked as GHSL-2023-274; it affects versions prior to the fix released in v1.10.3 and carries a CVSS 3.1 score of 7.5.
An unauthenticated remote attacker can send a crafted POST request containing ../ sequences in the file path field. This permits reading arbitrary files on the Hoverfly server filesystem, resulting in high-impact information disclosure without requiring authentication or user interaction.
The GitHub Security Advisory and accompanying release notes recommend upgrading to Hoverfly v1.10.3. They also advise implementers to validate that the final resolved path produced by filepath.Join remains strictly inside the expected base directory before any file operations occur.
The associated EPSS score currently stands at 0.9363 with a peak of 0.9368, indicating substantial and sustained exploitation interest following disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-2739
Vulnerability details
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…
more
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.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Automated marking applies security attributes to system outputs, making it harder for attackers to exploit unmarked sensitive information leading to unauthorized exposure.
Proper attribute retention and permitted-value enforcement limits unauthorized actors from accessing sensitive information lacking correct labels.
Prevents unauthorized exposure of sensitive information by prohibiting untrusted external systems from processing or storing it.
By enforcing authorization matching prior to sharing, the control reduces the risk of exposing sensitive information to unauthorized actors.
Review and removal of nonpublic information from publicly accessible systems directly prevents exposure of sensitive data to unauthorized actors.
Data mining protection mechanisms detect and block unauthorized bulk extraction of sensitive data, directly mitigating exposure to unauthorized actors.
Literacy training teaches users to recognize and avoid actions that result in unauthorized exposure of sensitive information.
Retaining and monitoring training records confirms personnel have completed privacy and security awareness training on handling sensitive data, reducing the chance of unauthorized exposure due to lack of knowledge.