S4E just found a high-severity finding from top 10 tcp port service scan
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Sep 17, 2025

CVE-2025-54123 Scanner

CVE-2025-54123 Scanner - Remote Code Execution (RCE) vulnerability in Hoverfly

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
2.6k
Times Used
continuous scan runs
3.7k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
CVECVE-2025-54123
9.8
CVSScritical
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
hoverflyby SpectoLabs
<= 1.11.3
Updated Aug 22, 2026View on NVD →
Detail

Hoverfly is an open source service virtualization tool used by developers and testers to simulate APIs. It allows users to create realistic testing environments, configure simulated endpoints, and helps in performance testing of software. Its key feature is that it provides the ability to mimic real-world traffic, making it ideal for testing applications in isolated or remote environments where the real services are unavailable. Hoverfly is primarily used in continuous integration/continuous delivery (CI/CD) pipelines to ensure software robustness before deployment. It appeals greatly to DevOps engineers seeking efficient testing solutions with a lightweight overhead. The service is available in a comprehensive package supporting multiple protocols, making it flexible for various online services.

The Remote Code Execution (RCE) vulnerability in Hoverfly enables unauthorized remote users to execute arbitrary commands on the affected system. The issue resides in the middleware API endpoint which lacks sufficient validation checks on its input parameters. Specifically, the 'binary' and 'script' parameters are vulnerable, making the system susceptible to malicious code injection. This critical security flaw allows an attacker to take control of the system, potentially compromising sensitive information and service functionality. The risk is exacerbated when combined with the fact that no authentication is initially required for exploitation. Addressing this vulnerability is crucial as it can lead to severe breaches and service downtime.

In technical terms, the vulnerability surfaces due to improper input validation in the middleware API (located at /api/v2/hoverfly/middleware). Users are allowed to pass arbitrary commands through unvalidated 'binary' and 'script' fields. By injecting a command such as "/bin/sh" with a secondary script like "cat /etc/passwd", an attacker can successfully retrieve sensitive file data. To exploit this, a PUT request is crafted and sent to the susceptible endpoint, resulting in command execution if the server returns a status code indicating partial execution (e.g., 422). Various patterns in the response indicate the success of the exploit, especially when specific strings are identified in the body, marking the control of execution.

Exploitation of this vulnerability could allow attackers to take control of affected systems, leading to unauthorized access to sensitive data and potential data loss. Compromised systems could be used to further attack other network resources, resulting in additional breaches. Affected organizations may face business disruption, data theft, infrastructure sabotage, and potential legal liabilities. Addressing and mitigating this vulnerability is critical to maintaining system integrity and protecting organizational data from unauthorized access and manipulation.

REFERENCES

Solution Advice
  • Update Hoverfly to the latest version to ensure all security patches are applied.
  • Implement strong input validation to eliminate any possibility of command injection.
  • Employ strict web application firewalls (WAFs) to monitor and block suspicious activities.
  • Conduct regular security audits and code reviews to identify potential security weaknesses.
  • Limit API access to trusted users or networks to reduce unauthorized access risks.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.