{"id":"CVE-2025-54123","published":"2025-09-10T18:41:46Z","modified":"2025-09-10T19:48:59Z","title":"Hoverfly vulnerable to remote code execution at `/api/v2/hoverfly/middleware` endpoint due to insecure middleware…","vendor":"SpectoLabs","product":"hoverfly","tier":"core","eol":null,"affectedVersions":[{"vendor":"SpectoLabs","product":"hoverfly","versions":["<= 1.11.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-09-10T18:47:39.102101Z","from":"CISA ADP","provenance":"source"},"description":{"text":"Hoverfly is an open source API simulation tool. In versions 1.11.3 and prior, the middleware functionality in Hoverfly is vulnerable to command injection vulnerability at `/api/v2/hoverfly/middleware` endpoint due to insufficient validation and sanitization in user input. The vulnerability exists in the middleware management API endpoint `/api/v2/hoverfly/middleware`. This issue is born due to combination of three code level flaws: Insufficient Input Validation in middleware.go line 94-96; Unsafe Command Execution in local_middleware.go line 14-19; and Immediate Execution During Testing in hoverfly_service.go line 173. This allows an attacker to gain remote code execution (RCE) on any system running the vulnerable Hoverfly service. Since the input is directly passed to system commands without proper checks, an attacker can upload a malicious payload or directly execute arbitrary commands (including reverse shells) on the host server with the privileges of the Hoverfly process. Commit 17e60a9bc78826deb4b782dca1c1abd3dbe60d40 in version 1.12.0 disables the set middleware API by default, and subsequent changes to documentation make users aware of the security changes of exposing the set middleware API.","provenance":"source","from":"CVE.org"},"summary":{"text":"Hoverfly, an open source API simulation tool, contains a command injection flaw in its middleware management endpoint at /api/v2/hoverfly/middleware, where user-supplied input is passed directly to system commands without adequate validation or sanitisation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:12:16Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.15669,"percentile":0.97476,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2025-11-10","exploitedFirstSeen":"2025-11-10","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2025-54123","date":"2025-11-10"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-r4h8-hfp2-ggmf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/SpectoLabs/hoverfly/commit/17e60a9bc78826deb4b782dca1c1abd3dbe60d40","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpectoLabs/hoverfly/commit/a9d4da7bd7269651f54542ab790d0c613d568d3e","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpectoLabs/hoverfly/blob/master/core/hoverfly_service.go#L173","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpectoLabs/hoverfly/blob/master/core/middleware/local_middleware.go#L13","tags":["x_refsource_MISC"]},{"url":"https://github.com/SpectoLabs/hoverfly/blob/master/core/middleware/middleware.go#L93","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"Go","package":"github.com/SpectoLabs/hoverfly","vulnerableRanges":["<=1.11.3","all versions"],"patched":[],"from":["GHSA-r4h8-hfp2-ggmf","GO-2025-3944"],"provenance":"source"}],"advisories":[{"id":"GHSA-r4h8-hfp2-ggmf","url":"https://github.com/advisories/GHSA-r4h8-hfp2-ggmf","severity":"CRITICAL","ecosystem":"Go","package":"github.com/SpectoLabs/hoverfly","vulnerableRanges":["<=1.11.3"],"patched":[],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2025-27608","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-27608","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":6,"skipped":0,"earliest":"2026-03-28","earliestUrl":"https://github.com/kasem545/CVE-2025-54123-Poc","repos":[{"name":"kasem545/CVE-2025-54123-Poc","url":"https://github.com/kasem545/CVE-2025-54123-Poc","stars":7,"created":"2026-03-28"},{"name":"0xk4rth1/CVE-2025-54123","url":"https://github.com/0xk4rth1/CVE-2025-54123","stars":2,"created":"2026-06-18"},{"name":"0x00phantom-hat/Hoverfly-1.11.3-RCE-CVE-2025-54123-Exploit","url":"https://github.com/0x00phantom-hat/Hoverfly-1.11.3-RCE-CVE-2025-54123-Exploit","stars":1,"created":"2026-05-27"},{"name":"tristanqtn/CVE-2025-54123","url":"https://github.com/tristanqtn/CVE-2025-54123","stars":0,"created":"2026-03-29"},{"name":"f4dee-backup/CVE-2025-54123","url":"https://github.com/f4dee-backup/CVE-2025-54123","stars":0,"created":"2026-03-30"}]},"nuclei":[{"id":"CVE-2025-54123","name":"Hoverfly <= 1.11.3 - Remote Code Execution","severity":"critical","path":"http/cves/2025/CVE-2025-54123.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-54123.yaml"}],"first":{"date":"2026-03-28","source":"PoC-in-GitHub","url":"https://github.com/kasem545/CVE-2025-54123-Poc"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2025-09-10","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2025-54123","provenance":"source"},{"date":"2025-11-10","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2025-54123","provenance":"source"},{"date":"2026-03-28","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/kasem545/CVE-2025-54123-Poc","provenance":"source"}],"speed":{"daysToPublicExploit":199,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":66.4,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 380 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.5,"detail":"percentile 0.9748"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"6 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}