CVE-2025-54123 in the critical feed json
Hoverfly vulnerable to remote code execution at `/api/v2/hoverfly/middleware` endpoint due to insecure middleware implementation
published 2025-09-10 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-27608 , GHSA-r4h8-hfp2-ggmf , GO-2025-3944
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 10.9%
- EPSS 10.9% chance of exploitation in 30 days, percentile 95%
- public exploits
- 0
- none known, plus a Nuclei check
Summary
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.
Patch / fix
- hoverfly hoverfly 1.12.0
- govulncheck-vulndb SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 0.0.20250918T182144-150000.1.107.1
suse advisories SUSE-SU-2025:03289-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250917T170349-1.1
opensuse advisories openSUSE-SU-2026:21483-1openSUSE-SU-2025:15564-1
- github.com/SpectoLabs/hoverfly@17e60a9 commit
- github.com/SpectoLabs/hoverfly@a9d4da7 commit
- github.com/SpectoLabs/hoverfly#1203 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 13 mo ago
Exploit prediction
10.91% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- Nuclei template Hoverfly <= 1.11.3 - Remote Code Execution nuclei detection template
- github.com https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-r4h8-hfp2-ggmf referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/SpectoLabs/hoverfly | <=1.11.3 all versions |
no fix listed |
Affected products
- SpectoLabs hoverfly
Classification
References
-
github.com
/SpectoLabs/hoverfly/commit/17e60a9bc78826deb4b782dca1c1abd3dbe60d40
web, patch
-
github.com
/SpectoLabs/hoverfly/commit/a9d4da7bd7269651f54542ab790d0c613d568d3e
web, patch
-
github.com
/SpectoLabs/hoverfly/pull/1203
web, patch
-
github.com
/SpectoLabs/hoverfly/security/advisories/GHSA-r4h8-hfp2-ggmf
exploit, web, vendor-advisory, advisory
-
github.com
/SpectoLabs/hoverfly/blob/master/core/hoverfly_service.go#L173
web, product
-
github.com
/SpectoLabs/hoverfly/blob/master/core/middleware/local_middleware.go#L13
web, product
-
github.com
/SpectoLabs/hoverfly/blob/master/core/middleware/middleware.go#L93
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2025-54123
advisory
-
github.com
/SpectoLabs/hoverfly
package
Sources
- CVE List CVE-2025-54123
- GitHub Advisory GHSA-r4h8-hfp2-ggmf
- NVD CVE-2025-54123
- OSV GO-2025-3944
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.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.