GNU Mailman Command Injection Vulnerability in External Archiver Configurations

Vulnerability

A command injection vulnerability has been identified in GNU Mailman version 2.1.39, which is bundled with cPanel and WHM. This vulnerability allows unauthenticated attackers to execute arbitrary operating system commands by injecting shell metacharacters into the email subject line. The issue arises when an external archiver is configured to process emails, and the subject line is not properly sanitized before being passed to a shell command. This vulnerability could lead to a full system compromise, with potential exploitation scenarios including establishing reverse shells, exfiltrating data, or causing denial-of-service conditions.

Impact

Exploitation of this vulnerability allows for arbitrary command execution on the server. Depending on the privileges with which Mailman is running, this could lead to root access. The executed commands could be used to access sensitive data, modify system configurations, install malware, or disrupt services by crashing or overloading the server.

Reproduction

To reproduce this vulnerability, send an email to a Mailman-managed mailing list that has an external archiver configured. The email must include a subject line with shell metacharacters, such as a command to open a reverse shell. If the external archiver does not sanitize the subject line, the injected command will be executed on the server.

Remediation

There is no official fix available for this vulnerability, as Mailman 2.1.x is no longer maintained. Users are advised to migrate to Mailman 3.x, which is actively supported and includes improved input sanitization. If an immediate upgrade is not possible, external archivers can be disabled by setting the corresponding configuration options to 'None'.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
7.5
exploitability
9.7
remediation
8.3
relevance
0.0
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.