Vulnerability · Published Jul 2, 2025 · Assigned by VulnCheck
CVE-2025-34073stamparm/maltrail <=0.54 Remote Command Execution
Critical 10.0
In plain English
A critical-severity OS command injection in Maltrail from Stamparm. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 5.5% (higher than 93% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei.
Official description
An unauthenticated command injection vulnerability exists in stamparm/maltrail (Maltrail) versions <=0.54. A remote attacker can execute arbitrary operating system commands via the username parameter in a POST request to the /login endpoint. This occurs due to unsafe handling of user-supplied input passed to subprocess.check_output() in core/http.py, allowing injection of shell metacharacters. Exploitation does not require authentication and commands are executed with the privileges of the Maltrail process.
Affected products (as reported)
Weakness: CWE-78, CWE-306 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
References
- https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/http/maltrail_rce.rb exploit
- https://huntr.com/bounties/be3c5204-fbd9-448d-b97c-96a8d2941e87 third-party-advisory, exploit
- https://github.com/stamparm/maltrail product
- https://github.com/stamparm/maltrail/issues/19146 issue-tracking
- https://vulncheck.com/advisories/stamparm-maltrail-rce third-party-advisory