cbcvebase.
CVE-2025-54123
published 2025-09-10

CVE-2025-54123: 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…

PriorityP188critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
10.54%
95.2th percentile
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

3 ranges
VendorProductVersion rangeFixed in
github.comspectolabs_hoverfly0 – 1.11.3
hoverflyhoverfly< 1.12.01.12.0
spectolabshoverfly<= 1.11.3

Detection & IOCsextracted from sources · hover to see the quote

url/api/v2/hoverfly/middleware
commandPUT /api/v2/hoverfly/middleware HTTP/1.1 Content-Type: application/json {"binary": "/bin/sh", "script": "cat /etc/passwd"}
hash17e60a9bc78826deb4b782dca1c1abd3dbe60d40
otherhttp.favicon.hash:1357234275
othericon_hash="1357234275"
  • Look for PUT requests to /api/v2/hoverfly/middleware with a JSON body containing 'binary' and 'script' fields; unauthenticated access to this endpoint is the attack vector.
  • A successful exploitation attempt returns HTTP 422 with 'STDOUT:' and 'hoverfly' in the response body, along with command output (e.g., root:x:0:0 from /etc/passwd).
  • Identify exposed Hoverfly instances via Shodan favicon hash 1357234275 or page title 'Hoverfly Dashboard' as potential targets.
  • The flaw involves three code-level issues: 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).
  • ·The middleware API endpoint is only exploitable if it is exposed; version 1.12.0 disables it by default. Operators who explicitly re-enable it remain at risk.
  • ·Exploitation requires no authentication; any network-accessible Hoverfly instance running <= 1.11.3 is directly exploitable without credentials.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vulncheck9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.