Home / SpectoLabs / hoverfly / CVE-2025-54123
CVE-2025-54123: is it exploited, and which versions of SpectoLabs hoverfly are affected and fixed?
CVE-2025-54123 is an improper input validation vulnerability in SpectoLabs hoverfly. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 18:39 UTC). Affected: github.com/SpectoLabs/hoverfly through 1.11.3 (GitHub advisory GHSA-r4h8-hfp2-ggmf). Fixed in 1.12.0 (NVD). Severity: Critical (9.8, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 18:39 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:17 UTC.
What is CVE-2025-54123?
Hoverfly vulnerable to remote code execution at `/api/v2/hoverfly/middleware` endpoint due to insecure middleware implementation
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.
From the CVE record by GitHub_M, last updated September 10, 2025, 19:48 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| SpectoLabs | hoverfly | <= 1.11.3 |
As the CVE record by GitHub_M states it, last updated September 10, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/SpectoLabs/hoverfly | <= 1.11.3 | none listed | GHSA-r4h8-hfp2-ggmf |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 13, 2025. Summary: Hoverfly is vulnerable to Remote Code Execution through an insecure middleware implementation.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| hoverfly | hoverfly | before 1.12.0 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 09:39 UTC.
How severe is CVE-2025-54123?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-54123 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: total (CISA ADP, September 10, 2025)
- EPSS
- 11.0% probability of exploitation activity in the next 30 days, percentile 96.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Where are the vendor advisories and references?
- https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-r4h8-hfp2-ggmf x_refsource_CONFIRM
- https://github.com/SpectoLabs/hoverfly/commit/17e60a9bc78826deb4b782dca1c1abd3dbe60d40 x_refsource_MISC
- https://github.com/SpectoLabs/hoverfly/commit/a9d4da7bd7269651f54542ab790d0c613d568d3e x_refsource_MISC
- https://github.com/SpectoLabs/hoverfly/blob/master/core/hoverfly_service.go#L173 x_refsource_MISC
- https://github.com/SpectoLabs/hoverfly/blob/master/core/middleware/local_middleware.go#L13 x_refsource_MISC
- https://github.com/SpectoLabs/hoverfly/blob/master/core/middleware/middleware.go#L93 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 16, 2025
- Published
- September 10, 2025, 18:41 UTC
- CVE record updated
- September 10, 2025, 19:48 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 09:39 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:17 UTC; KEV December 3, 2026, 18:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect hoverfly?
- Sep 11, 2026CVE-2026-50018 SpectoLabs hoverfly: denial of service (uncontrolled resource consumption)
- Sep 11, 2026CVE-2026-50013 SpectoLabs hoverfly: race condition
- Sep 10, 2025CVE-2025-54376 SpectoLabs hoverfly: information disclosure
- Sep 2, 2024CVE-2024-45388 SpectoLabs hoverfly: information disclosure
Questions about CVE-2025-54123
Is CVE-2025-54123 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 18:39 UTC. FIRST's EPSS gives it a 11.0% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of SpectoLabs hoverfly are affected by CVE-2025-54123?
github.com/SpectoLabs/hoverfly through 1.11.3, per the GitHub advisory GHSA-r4h8-hfp2-ggmf. The tables above give every range the sources list.
Which version fixes CVE-2025-54123?
1.12.0, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-54123?
Critical (9.8, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-54123?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.