CVE-2025-34073: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Stamparm Maltrail
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.
AI Analysis
Technical Summary
This vulnerability (CVE-2025-34073) affects Stamparm Maltrail (<=0.54) and is caused by improper neutralization of special elements in user input (username parameter) used in an OS command context. Specifically, the username parameter in a POST request to /login is passed unsafely to subprocess.check_output(), allowing injection of shell metacharacters and arbitrary command execution. The flaw requires no authentication and results in command execution with the same privileges as the Maltrail process, representing a critical security risk. The CVSS 4.0 base score is 10.0, reflecting its critical severity and ease of exploitation.
Potential Impact
Successful exploitation allows a remote unauthenticated attacker to execute arbitrary operating system commands on the host running Maltrail, with the same privileges as the Maltrail process. This can lead to full system compromise depending on the privileges of the Maltrail service. The vulnerability is critical due to its unauthenticated remote code execution nature and high CVSS score.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, it is recommended to restrict access to the Maltrail /login endpoint to trusted networks only and monitor for suspicious POST requests targeting the username parameter. Avoid exposing Maltrail instances directly to untrusted networks. Follow the vendor's updates closely for an official patch or mitigation instructions.
CVE-2025-34073: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Stamparm Maltrail
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.
CVSS v4.0
Score 10.0critical
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2025-34073) affects Stamparm Maltrail (<=0.54) and is caused by improper neutralization of special elements in user input (username parameter) used in an OS command context. Specifically, the username parameter in a POST request to /login is passed unsafely to subprocess.check_output(), allowing injection of shell metacharacters and arbitrary command execution. The flaw requires no authentication and results in command execution with the same privileges as the Maltrail process, representing a critical security risk. The CVSS 4.0 base score is 10.0, reflecting its critical severity and ease of exploitation.
Potential Impact
Successful exploitation allows a remote unauthenticated attacker to execute arbitrary operating system commands on the host running Maltrail, with the same privileges as the Maltrail process. This can lead to full system compromise depending on the privileges of the Maltrail service. The vulnerability is critical due to its unauthenticated remote code execution nature and high CVSS score.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, it is recommended to restrict access to the Maltrail /login endpoint to trusted networks only and monitor for suspicious POST requests targeting the username parameter. Avoid exposing Maltrail instances directly to untrusted networks. Follow the vendor's updates closely for an official patch or mitigation instructions.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2025-04-15T19:15:22.550Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 68653a166f40f0eb7292c95d
Added to database: 07/02/2025, 13:54:30 UTC
Last enriched: 05/14/2026, 01:53:43 UTC
Last updated: 09/07/2026, 10:52:04 UTC
Views: 276
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.