
CVE-2025-54123 exploit and documentation
Authenticated Remote Code Execution in HoverFly's middleware API endpoint due to insufficient input validation and unsafe command execution.
Authentication
/api/token-auth endpointMalicious Payload Crafting
binary: /bin/bash (user-controlled)script: Arbitrary shell command (e.g., whoami, reverse shell)Exploit Delivery
/api/v2/hoverfly/middleware with malicious payloadVulnerable Processing
binary and script parametersexec.Command(binary, scriptFile) during middleware validationCode Execution
exec.Command()Details available here : https://github.com/SpectoLabs/hoverfly/security/advisories/GHSA-r4h8-hfp2-ggmf