CRLF Command Injection in Ruby's IMAP Client
CVE-2026-47240
5.8MEDIUM
What is CVE-2026-47240?
The Net::IMAP library in Ruby has a vulnerability that allows for potential CRLF command injection attacks. An attacker can exploit this weakness when using commands that accept raw data, particularly if the IMAP server does not support non-synchronizing literals. This may result in the injection of arbitrary IMAP commands, compromising the integrity of email operations like searching and fetching. Users are encouraged to update to versions 0.6.5 and 0.5.15 or higher to mitigate these risks.
Affected Version(s)
net-imap >= 0.6.0, < 0.6.4.1 < 0.6.0, 0.6.4.1
net-imap < 0.5.15 < 0.5.15
