{"id":"CVE-2024-45388","published":"2024-09-02T16:07:17Z","modified":"2024-09-03T14:22:12Z","title":"Arbitrary file read in the `/api/v2/simulation` endpoint in hoverfly (`GHSL-2023-274`)","vendor":"SpectoLabs","product":"hoverfly","tier":"core","eol":null,"affectedVersions":[{"vendor":"SpectoLabs","product":"hoverfly","versions":["< 1.10.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-09-03T13:52:29.019621Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:13:15Z"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.55574,"percentile":0.99051,"date":"2026-11-24","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2024-12-05","exploitedFirstSeen":"2024-12-05","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2024-45388","date":"2024-12-05"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-6xx4-x46f-f897","tags":["x_refsource_CONFIRM"]},{"url":"https://codeql.github.com/codeql-query-help/go/go-path-injection","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpectoLabs/hoverfly/releases/tag/v1.10.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/spectolabs/hoverfly/blob/15d6ee9ea4e0de67aec5a41c28d21dc147243da0/core/handlers/v2/simulation_handler.go#L87","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Go","package":"github.com/spectolabs/hoverfly","vulnerableRanges":["<1.10.3"],"patched":["1.10.3"],"from":["GHSA-6xx4-x46f-f897","GO-2024-3108"],"provenance":"source"}],"advisories":[{"id":"GHSA-6xx4-x46f-f897","url":"https://github.com/advisories/GHSA-6xx4-x46f-f897","severity":"HIGH","ecosystem":"Go","package":"github.com/spectolabs/hoverfly","vulnerableRanges":["<1.10.3"],"patched":["1.10.3"],"provenance":"source","from":"GHSA"},{"id":"GHSA-6xx4-x46f-f897","url":"https://github.com/advisories/GHSA-6xx4-x46f-f897","severity":"HIGH","ecosystem":"Go","package":"github.com/SpectoLabs/hoverfly","vulnerableRanges":["<1.10.3"],"patched":["1.10.3"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2024-2739","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-2739","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"nuclei":[{"id":"CVE-2024-45388","name":"Hoverfly < 1.10.3 - Arbitrary File Read","severity":"high","path":"http/cves/2024/CVE-2024-45388.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-45388.yaml"}],"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2024-09-02","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2024-45388","provenance":"source"},{"date":"2024-12-05","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2024-45388","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":65.1,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 719 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.81,"detail":"percentile 0.9905"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":5.25,"detail":"base score 7.5"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}