Skip to content
Fencer Vulns
high 7.5

CVE-2024-45388 in the critical feed json

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

published 2024-09-02 2 y ago modified 2026-06-17 4 mo ago also GHSA-6xx4-x46f-f897 , GO-2024-3108 , EUVD-2024-2739

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
55.6%
EPSS 55.6% chance of exploitation in 30 days, percentile 99%
public exploits
0
none known, plus a Nuclei check

Summary

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.

Patch / fix

  • go github.com/spectolabs/hoverfly 1.10.3
  • go github.com/SpectoLabs/hoverfly 1.10.3
  • SpectoLabs hoverfly 1.10.3

CISA SSVC

Exploitation
Proof of concept is public
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

55.57% chance of exploitation in the next 30 days, higher than 99% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • Nuclei template Hoverfly < 1.10.3 - Arbitrary File Read nuclei detection template
  • github.com https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
go github.com/spectolabs/hoverfly
<1.10.3
1.10.3
go github.com/SpectoLabs/hoverfly
<1.10.3
1.10.3

Affected products

  • SpectoLabs hoverfly

Classification

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.