Skip to main content
CVE-2025-34073VulnerabilityPublished 07/02/2025Updated 05/14/2026

CVE-2025-34073: CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Stamparm Maltrail

Affects Stamparm MaltrailSource CVE Database V5

0

Not known to be exploited · public exploit available (Metasploit) · CVSS 10.0 Critical.

Data as of 10/24/2026, 22:16:01 UTC

CVSS 4.0 base score
10.0Critical
How severe the flaw is on the 0–10 CVSS scale.
Exploitation

Not in CISA KEV, no exploitation reported

EPSS
5.4% chance of exploitation in 30 days – higher than 92% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Public exploits
1 Metasploit module, a Nuclei detection templatePublic attack or detection tooling exists; see Public exploits below.
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

What to do

Affected software

ProductAffectedFixed in
GitHubstamparm/maltrailpkg:github/stamparm/maltrailOther threatsAffected
  • =0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

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.

Public exploits and detection

Public tooling indexed from Metasploit Framework, Exploit-DB and ProjectDiscovery nuclei-templates. Its existence raises the odds of exploitation; it does not confirm attacks.

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.

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.

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.

Weaknesses

References

Community reviews

Loading reviews…