{"id":"CVE-2025-34073","published":"2025-07-02T13:46:59Z","modified":"2026-05-14T02:07:31Z","title":"stamparm/maltrail <=0.54 Remote Command Execution","vendor":"Stamparm","product":"Maltrail","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05472,"percentile":0.92945,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"},{"id":"CWE-306","name":"Missing Authentication for Critical Functionality"}],"references":[{"url":"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/http/maltrail_rce.rb","tags":["exploit"]},{"url":"https://huntr.com/bounties/be3c5204-fbd9-448d-b97c-96a8d2941e87","tags":["third-party-advisory","exploit"]},{"url":"https://github.com/stamparm/maltrail","tags":["product"]},{"url":"https://github.com/stamparm/maltrail/issues/19146","tags":["issue-tracking"]},{"url":"https://vulncheck.com/advisories/stamparm-maltrail-rce","tags":["third-party-advisory"]}],"priority":{"score":30.6,"factors":[{"name":"EPSS percentile","points":18.59},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":7.0}]},"exploitSources":{"metasploit":[{"name":"Maltrail Unauthenticated Command Injection","module":"exploit/unix/http/maltrail_rce","type":"exploit","disclosureDate":"2023-07-31","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/maltrail_rce.rb"}],"nuclei":[{"id":"CVE-2025-34073","name":"Maltrail <=0.54 Username Parameter - Remote Command Execution","severity":"critical","path":"http/cves/2025/CVE-2025-34073.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-34073.yaml"}],"first":{"date":"2023-07-31","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/http/maltrail_rce.rb"},"provenance":"source"},"vendorSlug":"stamparm","affectedVersions":[{"vendor":"Stamparm","product":"Maltrail","versions":["<= 0.54"]}],"capec":[{"id":"CAPEC-88","name":"OS Command Injection"},{"id":"CAPEC-137","name":"Parameter Injection"}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-07-02T20:29:45.520099Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"Maltrail (stamparm/maltrail) versions 0.54 and earlier contain an unsafe command injection flaw in core/http.py, where the username parameter is passed without sanitisation to subprocess.check_output(). An unauthenticated remote attacker can exploit this by sending a POST request to the /login endpoint containing shell metacharacters in the username, causing arbitrary operating system commands to run with the privileges of the Maltrail process; no authentication or user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:18:17Z"},"euvd":{"id":"EUVD-2025-19716","exploited":false,"provenance":"source"},"exploitRefs":["https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/http/maltrail_rce.rb","https://huntr.com/bounties/be3c5204-fbd9-448d-b97c-96a8d2941e87"]}