Patchfirst
CVE-2024-45388 Public exploit High · 7.5 EPSS 55.6%

Arbitrary file read in the `/api/v2/simulation` endpoint in hoverfly (`GHSL-2023-274`)

Fix:upgrade hoverfly to 1.10.3 Details ↓

SpectoLabs · hoverfly

Summary

The Hoverfly service virtualization tool's /api/v2/simulation POST handler lets a user create simulation views from a specified file, but a path traversal flaw in that handler allows ../ segments to escape the configured responses body files directory and read arbitrary files on the Hoverfly server. An unauthenticated attacker with network access to the endpoint can exploit this with no user interaction and a default configuration, reading any file the Hoverfly process can access.

Official description · CVE.org

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.

Breakdown
65.1 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 3 months after disclosure.

  1. Disclosedday 0
  2. First seen exploitedVulnCheck KEV evidence+3 mo

Affected versions and fixes

as published in the CVE record

SpectoLabs hoverfly

Affected: < 1.10.3

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: github.com/spectolabs/hoverfly.

Gogithub.com/spectolabs/hoverflyGHSA-6xx4-x46f-f897GO-2024-3108

Upgrade to 1.10.3

Still affected on this line by CVE-2025-54123 (no fix published).

Gogo get github.com/spectolabs/hoverfly@v1.10.3

The first fix for CVE-2024-45388.

Affected versions

If you runUpgrade to
All versions before 1.10.31.10.3

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close