CVE-2024-45388

HIGH

CVSS v3

7.5

HIGH

EPSS Score

93.7%

exploit probability

CISA KEV

No

known exploited

Exploitation

SSVC status

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.

Technical Details

Published
9/2/2024

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.

Is CVE-2024-45388 actively exploited?

Active exploitation of CVE-2024-45388 has not been confirmed. The EPSS score is 93.7%, indicating the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-45388?

CVE-2024-45388 has a CVSS v3 base score of 7.5 (HIGH severity).

Is CVE-2024-45388 affecting your environment?

Use isMalicious to check if any of your IPs or domains are associated with this vulnerability's IOCs.