CVE-2025-54123
Remote Code Execution in Hoverfly Middleware API (/api/v2/hoverfly/middleware) .
A command injection vulnerability was identified in Hoverfly’s middleware management API at /api/v2/hoverfly/middleware due to unsafe handling of user-supplied input. The application allows attacker-controlled values to be passed directly to system command execution during middleware validation, resulting in immediate execution of arbitrary commands. Successful exploitation enables remote code execution with the privileges of the Hoverfly process and can be abused to run arbitrary commands or spawn reverse shells. This flaw poses a critical risk to systems running vulnerable Hoverfly versions.
Identifier
CVE-2025-54123
Affected product
Hoverfly
Disclosed
Sep 11, 2025
Credit
Krishna Agarwal
Proof of Concept
Preconditions
- A vulnerable Hoverfly instance is running
- Admin API is accessible (default: `http://<target>:8888`)
- No authentication is required, or valid admin credentials are available
PUT request to the middleware endpoint. The payload abuses the binary field to execute /bin/bash and injects an arbitrary command via the script field.Remediation
Running this software?
If Hoverfly is in your environment, the reproduction steps above are enough to verify exposure yourself. If you would rather have the same class of bug hunted across your own stack, that is what we do as an engagement.