CVE detail

CVE-2009-3765

Mutt SSL vulnerability allows man-in-the-middle attacks on SSL servers

MediumModified
CVSS6.8
EPSS
Exploitability5
Exploit refs0

Summary

**Mutt 1.5.19–1.5.20** with OpenSSL does not validate embedded **NUL bytes** in X.509 certificate CN fields, enabling **MITM** against IMAPS/POP3S with wildcard-matching crafted certs (**CWE-310**).

Published

Oct 24, 2009

Last modified

Jun 17, 2026

CWE

CWE-310 · Cryptographic Issues

Affected product

cpe:2.3:a:mutt:mutt:1.5.19:*:*:*:*:*:*:* cpe:2.3:a:mutt:mutt:1.5.20:*:*:*:*:*:*:*

Why exploitable

Why Exploitable

The vulnerability in mutt_ssl.c allows man-in-the-middle attackers to spoof SSL servers by crafting a certificate with a '\0' character in the domain name. This issue is related to CVE-2009-2408 and affects mutt versions 1.5.19 and 1.5.20 when using OpenSSL.

Key factors affecting exploitability:

  • EPSS (Empirical Exploitation Probability Score) is not available, making it difficult to assess the likelihood of exploitation.
  • The absence of public exploit/PoC references and CISA KEV listing reduces the perceived urgency.
  • However, organizations should still validate their mutt versions and OpenSSL configurations to ensure they are not vulnerable to this attack.

It is essential for organizations to review their SSL certificate handling and validation processes to prevent potential man-in-the-middle attacks. Although there are no public exploits available, the vulnerability can still be exploited by skilled attackers. Therefore, organizations should prioritize patching or updating their mutt versions to prevent potential security breaches.

Technical details

Overview

CVE-2009-3765 is a certificate name validation flaw in Mutt's mutt_ssl.c when linked against OpenSSL. NUL in CN can truncate comparison, accepting attacker certs that match a prefix of the intended hostname.

Technical details

Related to CVE-2009-2408 class of NUL-in-CN issues. Legitimate CA-issued cert with crafted CN evil.com\\0.trusted.com may satisfy naive string compare.

Impact

Confidentiality breach of mail traffic — credentials and message content exposed to MITM on SSL/TLS mail connections.

Exploitation steps

  1. Position on network path to victim Mutt client. 2. Present crafted cert during IMAPS handshake. 3. Mutt accepts due to NUL truncation. 4. Proxy mail session.

Indicators of compromise

Unexpected cert warnings absent though wrong server; MITM appliance logs; CN anomalies in captured handshakes.

Mitigation and workarounds

Upgrade Mutt past 1.5.20; use distribution backports; verify cert hostnames with modern TLS libraries.

Community reactions

2009 OpenSSL application ecosystem wake-up alongside similar NUL-CN bugs in other clients.

Additional resources

Intelligence is provided for awareness and triage. Validate exposure in your own environment before prioritising remediation.

CVE-2009-3765 · Mutt SSL vulnerability allows man-in-the-middle attacks on SSL servers | CVE Intelligence | Trusteed