HoverflyApplication

CVE-2025-54123

CRITICAL · 9.8 CVSS v3.1 Published 2025-09-10
Fix available
A fix is available. Upgrade to 1.12.0 or later.
See remediation →
100/100
Remediation priority · Urgent
Public exploit Remotely reachable No privileges Zero-click Patch available

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Hoverfly versions 1.11.3 and prior contain a command injection vulnerability in the middleware management API endpoint (/api/v2/hoverfly/middleware) due to insufficient input validation and unsafe command execution. The vulnerability allows unauthenticated attackers to execute arbitrary commands on the host system with the privileges of the Hoverfly process, achieving full remote code execution.

MitigationUpgrade Hoverfly to version 1.12.0 or later, which disables the set middleware API by default. If the middleware functionality is required, ensure proper network access controls are in place and validate that the API is not exposed to untrusted networks.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
HoverflyApplication
Affected:< 1.12.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify Hoverfly version
    Run 'hoverctl version' or check the installed package version using your system package manager (e.g., 'dpkg -l | grep hoverfly', 'rpm -qi hoverfly', or check the binary version)
    Affected if The installed version is 1.11.3 or prior, or any version below 1.12.0
  2. Verify middleware API is enabled
    Check if the /api/v2/hoverfly/middleware endpoint is accessible by making a GET request to the Hoverfly admin API (e.g., curl http://localhost:8888/api/v2/hoverfly/middleware)
    Affected if The middleware API returns a response instead of a 404 or authentication error, indicating it is enabled and reachable
  3. Assess network exposure
    Review network configuration to determine if the Hoverfly admin API (typically port 8888) is bound to a non-loopback address or is accessible from external IP addresses; check firewall rules and any proxy configurations
    Affected if The API is bound to 0.0.0.0 or an external IP address, or is accessible from untrusted networks without firewall restrictions
  4. Confirm unauthenticated access
    Test the middleware API endpoint without providing any credentials to verify if authentication is enforced
    Affected if The endpoint responds to unauthenticated requests, allowing unauthenticated command injection
  5. Check for middleware configuration
    Examine any existing middleware configurations via 'hoverctl middleware get' or by reviewing the API response for configured middleware paths
    Affected if Middleware is configured and the API is accessible, satisfying the conditions for command injection exploitation

You are affected if Hoverfly version is below 1.12.0 AND the /api/v2/hoverfly/middleware API endpoint is enabled and exposed without proper authentication or network access controls.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 1.12.0 or later
Fixed in 1.12.0
Vendor patch github.com →
Interim mitigation

Upgrade Hoverfly to version 1.12.0 or later, which disables the set middleware API by default. If the middleware functionality is required, ensure proper network access controls are in place and validate that the API is not exposed to untrusted networks.

Recommended fix High confidence

Hoverfly version 1.12.0

  1. Identify the currently running Hoverfly version using `hoverctl version` or checking the binary
  2. Download Hoverfly version 1.12.0 from the official GitHub releases page at https://github.com/SpectoLabs/hoverfly/releases
  3. Replace the existing Hoverfly binary with the version 1.12.0 binary
  4. Restart the Hoverfly service to apply the update
  5. Verify the upgrade was successful by running `hoverctl version` and confirming it shows 1.12.0
  6. If your workflows depend on the `/api/v2/hoverfly/middleware` endpoint, review the new security documentation to understand how to explicitly enable it with proper authentication and network isolation if absolutely required
Caveat The set middleware API endpoint (/api/v2/hoverfly/middleware) is now disabled by default; any automation or tooling that relies on setting middleware programmatically will need to be updated or explicitly enable the endpoint

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Hoverfly Scoped from the published advisory
  • Consultation2.0 h
  • Implementation2.0 h
  • Testing3.0 h
  • Review / QA2.0 h
9.0 hours of engineering $1,570
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,512.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-54123 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-54123 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data