Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| SpectoLabs | hoverfly | <= 1.11.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | govulncheck-vulndb | 0.0.20250918T182144-150000.1.107.1 | SUSE-SU-2025:03289-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20250917T170349-1.1 | openSUSE-SU-2025:15564-1 |
| openSUSE Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 | openSUSE-SU-2026:21483-1 |
| openSUSE Leap 15.6 | govulncheck-vulndb | 0.0.20250918T182144-150000.1.107.1 | SUSE-SU-2025:03289-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 6 repositories
-
kasem545/CVE-2025-54123-Poc ★ 7 · Mar 28, 2026
CVE-2025-54123 Hoverfly Authenticated Middleware Command Injection RCE
-
0xk4rth1/CVE-2025-54123 ★ 2 · Jun 18, 2026
CVE-2025-54123 Hoverfly Command Injection to RCE PoC
-
0x00phantom-hat/Hoverfly-1.11.3-RCE-CVE-2025-54123-Exploit ★ 1 · May 27, 2026
-
davidzzo23/CVE-2025-54123 ★ 0 · Mar 31, 2026
Hoverfly CVE RCE
-
f4dee-backup/CVE-2025-54123 ★ 0 · Mar 30, 2026
PoC CVE-2025-54123 - Hoverfly <= 1.11.3 - Authenticated Middleware Command Injection
-
tristanqtn/CVE-2025-54123 ★ 0 · Mar 29, 2026
CVE-2025-54123 exploit and documentation
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Hoverfly <= 1.11.3 - Remote Code Execution http/cves/2025/CVE-2025-54123.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/SpectoLabs/hoverfly | <= 1.11.3 | — | GHSA-r4h8-hfp2-ggmf |
| Go | github.com/SpectoLabs/hoverfly | all versions | — | GO-2025-3944 |
Advisories 3
- openSUSE-SU-2026:21483-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Jul 31, 2026
- openSUSE-SU-2025:15564-1 govulncheck-vulndb-0.0.20250917T170349-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- SUSE-SU-2025:03289-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-r4h8-hfp2-ggmf
- https://github.com/SpectoLabs/hoverfly/commit/17e60a9bc78826deb4b782dca1c1abd3dbe60d40
- https://github.com/SpectoLabs/hoverfly/commit/a9d4da7bd7269651f54542ab790d0c613d568d3e
- https://github.com/SpectoLabs/hoverfly/blob/master/core/hoverfly_service.go#L173
- https://github.com/SpectoLabs/hoverfly/blob/master/core/middleware/local_middleware.go#L13
- https://github.com/SpectoLabs/hoverfly/blob/master/core/middleware/middleware.go#L93