CVE-2025-54123CWE-20CWE-78

Hoverfly vulnerable to remote code execution at `/api/v2/hoverfly/middleware` endpoint due to insecure middleware implementation

Critical · published September 10, 2025

CVSS v3.1
9.8
EPSS
11%
Percentile
95.8
In the wild
Unconfirmed
What it is

🚨 Command injection lurking in Hoverfly? You bet! Versions 1.11.3 and prior expose a sneaky flaw at the `/api/v2/hoverfly/middleware` endpoint that could let attackers run commands like they own the place. 🔥 Think of it like a restaurant kitchen where the chef takes any order without checking the ingredients—an attacker could slip in a recipe for disaster by calling for malicious commands as if they were just another meal request! 🍽️ This vulnerability is absolutely devastating! An attacker could gain remote code execution (RCE), allowing them to upload malicious payloads or execute arbitrary commands, including reverse shells, on the host server. If an attacker exploits this flaw, they could access sensitive data or even take complete control of the system running Hoverfly! ⚠️

Put simply

Think of it like a restaurant kitchen where the chef takes any order without checking the ingredients—an attacker could slip in a recipe for disaster by calling for malicious commands as if they were just another meal request! 🍽️ The command injection vulnerability arises from insufficient input validation and unsafe command execution in the Hoverfly middleware management API. Specifically, user input is passed directly to system commands without proper checks, opening the door for exploitation.

What to do

This vulnerability is absolutely devastating! An attacker could gain remote code execution (RCE), allowing them to upload malicious payloads or execute arbitrary commands, including reverse shells, on the host server. If an attacker exploits this flaw, they could access sensitive data or even take complete control of the system running Hoverfly! ⚠️ Immediate steps are crucial! Upgrade to version 1.12.0 to disable the vulnerable middleware API by default. Additionally, review your documentation for any recent security updates and ensure proper input validation mechanisms are in place. You've got this! By following these steps, you're not just fixing a flaw—you're boosting your security hero status! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.10543 · 95.8th percentile
Weaknesses
CWE-20 · Improper Input Validation; CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-09-10T18:41Z
EPSS history
Timeline
  • 10 SEP 18:41Z
    Hoverfly vulnerable to remote code execution at `/api/v2/hoverfly/middleware` endpoint due to insecure middleware implementation
    cvelistv5