Stamparm Maltrail
stamparm/maltrail <=0.54 Remote Command Execution
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- <= 0.54
Mitigation
The record names no fix. Check the vendor advisory below.
Timeline
Days relative to CVE publicationFirst public PoC 22 h after publication; not in CISA KEV. First PoC: Metasploit exploit: Maltrail Unauthenticated Command Injection (exploit/unix/http/maltrail_rce) (Metasploit, 3 Jul 2025).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| infcodev/pentesting_scripts | 6 Feb 2025 −146 d | 0 | PoC older repo: PoC date unknown, not used for the first PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| CVE record (tagged exploit) | https://huntr.com/bounties/be3c5204-fbd9-448d-b97c-96a8d2941e87 | unknown | 14 Nov 2026 |
| CVE record (tagged exploit) | https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/http/maltrail_rce.rb | unknown | 14 Nov 2026 |
| Metasploit | Metasploit exploit: Maltrail Unauthenticated Command Injection (exploit/unix/http/maltrail_rce) | 3 Jul 2025 | 14 Nov 2026 |
| nuclei template | nuclei template: Maltrail <=0.54 Username Parameter - Remote Command Execution | 4 Aug 2025 | 14 Nov 2026 |