CVE-2006-5262: CRLF Injection in Hastymail lib/session.php
- Vendor
- Hastymail
A CRLF injection vulnerability exists in lib/session.php in Hastymail 1.5 and earlier (before 20061008), allowing remote authenticated users to inject arbitrary IMAP commands by including CRLF sequences in mailbox names. This occurs due to improper sanitization of user-supplied mailbox names before they are used in IMAP commands.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An authenticated attacker can inject arbitrary IMAP commands, potentially manipulating the IMAP session in unintended ways. If the IMAP server is configured to prevent direct user sessions, this vulnerability can be used to cross privilege boundaries, possibly leading to unauthorized actions on the mail server.
Mitigation
If you can’t patch tonight, do this now.
As an interim measure, restrict mailbox names to exclude CRLF characters and monitor for suspicious mailbox naming patterns. Additionally, consider filtering or sanitizing user input at the application or web server level until a patch can be applied.
Remediation
Patch, then assume compromise.
Upgrade to Hastymail version 1.5 (20061008) or later, where the input validation and sanitization of mailbox names has been corrected to prevent CRLF injection.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2006-5262 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2006-5262 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2006-5262?
- As of Oct 16, 2026, Mallory has not confirmed a public exploit for CVE-2006-5262. 1 candidate exploit record is not yet analyzed.
- Is there a patch for CVE-2006-5262?
- Upgrade to Hastymail version 1.5 (20061008) or later, where the input validation and sanitization of mailbox names has been corrected to prevent CRLF injection.
- What products are affected by CVE-2006-5262?
- Hastymail.
- How severe is CVE-2006-5262?
- CVE-2006-5262 has a CVSS v2 score of 6.5 (Medium) and an EPSS score of 2.6% (86th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.