cve.bz

CVE-2024-45388

7.5 highEPSS 56%

High (7.5) in hoverfly hoverfly. EPSS 56% chance of exploitation in the next 30 days. Fixed in github.com/spectolabs/hoverfly 1.10.3.

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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
56% chance of exploitation in the next 30 days; higher than 99% of CVEs (scores of 2026-10-31)
CWEs
CWE-22, CWE-200
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6xx4-x46f-f897Gogithub.com/spectolabs/hoverfly<1.10.31.10.3
GHSA-6xx4-x46f-f897Gogithub.com/SpectoLabs/hoverfly<1.10.31.10.3
GO-2024-3108Gogithub.com/SpectoLabs/hoverfly<1.10.31.10.3

References

Check your stackJSON