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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Stamparm | Maltrail | ≤ 0.54 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Maltrail Unauthenticated Command Injection
exploit/unix/http/maltrail_rce
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Maltrail <=0.54 Username Parameter - Remote Command Execution http/cves/2025/CVE-2025-34073.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
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