Cyber Resilience

CVE-2024-45388

HighPublic PoC

Published: 02 September 2024

Published
02 September 2024
Modified
19 September 2024
KEV Added
Patch
CVSS Score v3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS Score 0.9363 99.8th percentile
Risk Priority 71 60% EPSS · 20% KEV · 20% CVSS

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

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

hoverfly
hoverfly
≤ 1.10.3

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.

addresses: CWE-200

Automated marking applies security attributes to system outputs, making it harder for attackers to exploit unmarked sensitive information leading to unauthorized exposure.

addresses: CWE-200

Proper attribute retention and permitted-value enforcement limits unauthorized actors from accessing sensitive information lacking correct labels.

addresses: CWE-200

Prevents unauthorized exposure of sensitive information by prohibiting untrusted external systems from processing or storing it.

addresses: CWE-200

By enforcing authorization matching prior to sharing, the control reduces the risk of exposing sensitive information to unauthorized actors.

addresses: CWE-200

Review and removal of nonpublic information from publicly accessible systems directly prevents exposure of sensitive data to unauthorized actors.

addresses: CWE-200

Data mining protection mechanisms detect and block unauthorized bulk extraction of sensitive data, directly mitigating exposure to unauthorized actors.

addresses: CWE-200

Literacy training teaches users to recognize and avoid actions that result in unauthorized exposure of sensitive information.

addresses: CWE-200

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.

References