
Discovered by: Firudin Davudzada & Musazada Aydan
Disclosure Date: April 2025
CVE ID: CVE-2025-43919
Severity: 5.8 Medium (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N)
Attack Type: Remote
Affected Software: GNU Mailman 2.1.39 (bundled with cPanel/WHM)
GNU Mailman 2.1.39, as bundled with cPanel and WHM, contains a critical directory traversal vulnerability in the /mailman/private/mailman endpoint. Unauthenticated attackers can exploit this flaw to read arbitrary files on the server, such as /etc/passwd or Mailman configuration files, due to insufficient input validation in the private.py CGI script. This vulnerability poses significant risks for information disclosure and can facilitate further attacks when combined with other exploits.
private.py CGI script (handles private archive authentication)archive.py (archive processing logic)Mailman/Handlers/ (core mailing list logic).mbox archive filesusername parameter in POST requests to /mailman/private/mailman is not sanitized, allowing ../ sequences to traverse the filesystem.The following command demonstrates unauthorized access to /etc/passwd:
curl -X POST -d "username=../../../../etc/passwd&password=x&submit=Let+me+in..." http://target/mailman/private/mailman
Expected Output: Contents of /etc/passwd or other targeted files, depending on server permissions.
/mailman/private/mailman with crafted username parameters containing .././etc/passwd, /etc/shadow if permissions allow)..mbox archives to extract user data or email content.Restrict Endpoint Access: Configure the web server to block unauthorized access to /mailman/private:
<Location "/mailman/private">
Require ip 127.0.0.1
Deny from all
</Location>
Or for Nginx:
location /mailman/private {
deny all;
return 403;
}
Monitor Logs: Check for suspicious POST requests to /mailman/private/mailman:
tail -f /var/log/httpd/access_log | grep "/mailman/private"
Firudin Davudzada and Musazada Aydan responsibly disclosed this vulnerability during a sanctioned penetration testing engagement. Thanks to the MITRE CVE team for coordination.
Email: [email protected]