REDHAT-BUG-2491523: CRLF Injection
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to 0.6.5 and 0.5.15, several Net::IMAP commands accept a raw string argument which is only validated to prevent CRLF injection and then sent verbatim. If this string is derived from user-controlled input, an attacker can force the next command to be absorbed as a continuation of the first command. This will cause the first command to eventually fail, but also prevents it from returning until another command is sent (from another thread). That other command will not return until the connection is closed. This vulnerability is fixed in 0.6.5 and 0.5.15.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Net::IMAPto a version that resolves this vulnerability.Fixed in 0.6.5 - Upgrade
Upgrade
Net::IMAPto a version that resolves this vulnerability.Fixed in 0.5.15
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2491523?
The severity of REDHAT-BUG-2491523 is medium, rated at 4.
How do I fix REDHAT-BUG-2491523?
To fix REDHAT-BUG-2491523, upgrade to Ruby Net::IMAP version 0.6.5 or 0.5.15 or later.
What type of vulnerability is REDHAT-BUG-2491523?
REDHAT-BUG-2491523 is a CRLF Injection vulnerability.
What software is affected by REDHAT-BUG-2491523?
The vulnerability affects Ruby's Net::IMAP library.
When was REDHAT-BUG-2491523 published?
REDHAT-BUG-2491523 was published on June 22, 2026.