CVE-2024-45388

CVE-2024-45388 is a high-severity vulnerability in Hoverfly with a CVSS 3.x base score of 7.5. Its EPSS exploit-prediction score of 56% places it in the 99th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-22.

Key facts

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.

Frequently asked questions

What is CVE-2024-45388?
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.
How severe is CVE-2024-45388?
CVE-2024-45388 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
Is CVE-2024-45388 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 56% (99th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-45388?
CVE-2024-45388 affects Hoverfly. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-45388?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2024-45388 have an EU (EUVD) identifier?
Yes. CVE-2024-45388 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-2739.
When was CVE-2024-45388 published?
CVE-2024-45388 was published on 2024-09-02 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Hoverfly

All CVEs affecting Hoverfly →

Other CWE-22 (Path Traversal) vulnerabilities

Browse all CWE-22 (Path Traversal) vulnerabilities →