CVE detail
CVE-2009-1390
Mutt allows spoofing of trusted servers via man-in-the-middle attacks
Search another CVE
Summary
Mutt 1.5.19 fails to validate the full TLS certificate chain when linked against OpenSSL or GnuTLS, enabling man-in-the-middle attacks against email connections. Attackers can spoof trusted servers by presenting a single accepted certificate, compromising email confidentiality and integrity.
Why exploitable
Why Exploitable
The CVE-2009-1390 vulnerability in Mutt is exploitable due to its inability to properly verify the entire TLS certificate chain. This allows remote attackers to spoof trusted servers via a man-in-the-middle attack.
- Empirical exploitation probability (EPSS) is not available for this CVE, which means there's limited data on its likelihood of being exploited in the wild.
- The absence of public exploit/PoC references and its exclusion from CISA KEV may reduce the perceived urgency, but organizations should still validate their Mutt configurations to ensure proper TLS certificate chain verification.
- Organizations using Mutt 1.5.19 with OpenSSL or GnuTLS should prioritize updating to a patched version or implementing additional security measures to prevent man-in-the-middle attacks.
Technical details
Overview
CVE-2009-1390 is a medium-severity vulnerability in Mutt 1.5.19, a popular command-line email client. The flaw affects Mutt when compiled with either OpenSSL (mutt_ssl.c) or GnuTLS (mutt_ssl_gnutls.c) for TLS connections. The vulnerability allows remote attackers to perform man-in-the-middle (MITM) attacks by presenting a single certificate that is accepted by the client, without verifying the entire certificate chain. This bypasses proper authentication of TLS servers, enabling spoofing of trusted email servers. The issue was disclosed in 2009 and affects users of Debian and other Linux distributions that package Mutt with these SSL libraries. Defenders should prioritize patching systems where Mutt is used for secure email communication, especially in environments handling sensitive data.
Technical details
The root cause lies in the certificate chain verification logic within Mutt's SSL implementation. When establishing a TLS connection, Mutt should validate the entire certificate chain from the server certificate up to a trusted root CA. However, due to a coding error, Mutt accepts the connection if any single certificate in the chain is trusted, rather than requiring the full chain to be valid. This means an attacker can present a certificate that is directly trusted (e.g., a self-signed certificate that the user has previously accepted) without providing the intermediate CA certificates. The vulnerability is present in both the OpenSSL and GnuTLS backends. Affected versions include Mutt 1.5.19 and possibly earlier versions. The attack requires the attacker to be in a position to intercept network traffic (MITM) and present a certificate that the client trusts, such as one previously imported or accepted by the user. The CWE classification is CWE-287: Improper Authentication, as the certificate chain validation is insufficient.
Impact
Successful exploitation allows an attacker to intercept, read, and modify email traffic between the Mutt client and the email server. This compromises the confidentiality and integrity of email communications, including potentially sensitive data such as credentials, attachments, and message content. The attacker can also impersonate the email server, leading to phishing or data exfiltration. For organizations, this vulnerability undermines trust in TLS-protected email channels and can lead to compliance violations if sensitive data is exposed. The CVSS base score is 6.8 (Medium), with high attack complexity due to the need for MITM positioning and a trusted certificate. The EPSS percentile of 77.3 indicates active exploitation attempts in the wild.
Exploitation steps
- Attacker positions themselves on the network path between the victim's Mutt client and the target email server (e.g., via ARP spoofing, rogue Wi-Fi, or compromised router).
- Attacker obtains or generates a certificate that is trusted by the victim's Mutt client (e.g., a self-signed certificate previously imported, or a certificate from a CA the user trusts).
- When the victim's Mutt client initiates a TLS connection to the email server, the attacker intercepts the connection and presents the trusted certificate.
- Mutt's flawed chain validation accepts the connection because the presented certificate is in the trusted store, even though the full chain is not verified.
- The attacker establishes a separate TLS connection to the real email server, acting as a proxy.
- All email traffic between the victim and the server is now decrypted and re-encrypted by the attacker, allowing read and modify access.
- The attacker can capture credentials, read emails, or inject malicious content.
- The victim remains unaware as the connection appears to be encrypted.
Indicators of compromise
- Unexpected TLS certificate warnings or changes in the certificate presented by the email server.
- Network traffic showing multiple TLS handshakes for the same email server from the same client IP.
- Log entries in Mutt or system logs indicating certificate validation errors or warnings (e.g., "certificate chain incomplete").
- ARP cache anomalies or duplicate IP addresses on the local network.
- Unusual email server responses or delays in email delivery.
- EDR alerts for processes (mutt) making connections to unexpected IP addresses.
- DNS queries for the email server resolving to an unexpected IP.
- Presence of unauthorized self-signed certificates in the user's certificate store.
Mitigation and workarounds
- Upgrade Mutt to version 1.5.20 or later, which includes proper certificate chain validation.
- For Debian-based systems, apply the security update provided by the distribution (e.g., DSA-1787-1).
- As a workaround, users can manually verify the server certificate fingerprint before connecting, though this is impractical for regular use.
- Use a different email client that properly validates certificate chains, such as Thunderbird or Claws Mail.
- Implement network segmentation and monitoring to detect MITM attacks.
- Enforce strict certificate pinning where possible, though Mutt does not natively support this.
- Ensure that only trusted CA certificates are in the system's trust store.
Community reactions
The vulnerability was reported by the Mutt development team and addressed in the 1.5.20 release. Security advisories were issued by Debian (DSA-1787-1) and other Linux distributions. The issue was discussed on mailing lists and security forums, with emphasis on the need for proper certificate validation in email clients. Some users noted that the flaw had existed for some time and highlighted the importance of chain verification. The CVE was assigned in 2009, and while the vulnerability is old, it remains relevant for systems running unpatched versions of Mutt.
Additional resources
References
- http://dev.mutt.org/hg/mutt/rev/64bf199c8d8a
- http://dev.mutt.org/hg/mutt/rev/8f11dd00c770
- http://www.openwall.com/lists/oss-security/2009/06/10/2
- http://www.securityfocus.com/bid/35288
- https://exchange.xforce.ibmcloud.com/vulnerabilities/51068
- https://www.redhat.com/archives/fedora-package-announce/2009-June/msg00715.html
- http://dev.mutt.org/hg/mutt/rev/64bf199c8d8a
- http://dev.mutt.org/hg/mutt/rev/8f11dd00c770
- http://www.openwall.com/lists/oss-security/2009/06/10/2
- http://www.securityfocus.com/bid/35288
- https://exchange.xforce.ibmcloud.com/vulnerabilities/51068
- https://www.redhat.com/archives/fedora-package-announce/2009-June/msg00715.html
Intelligence is provided for awareness and triage. Validate exposure in your own environment before prioritising remediation.