REDHAT-BUG-2491519: Command 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 data" argument that is sent verbatim after validation to prevent command injection. However, if a server does not support non-synchronizing literals, it may still be possible to inject arbitrary IMAP commands inside non-synchronizing literals. A server without support for non-synchronizing literals may interpret the "+}\r\n" as the end of a malformed command line and respond with a tagged BAD. In that case, the contents of the literal will be interpreted as one or more new pipelined commands, allowing a CRLF command injection attack to succeed. This affects criteria for #search and #uidsearch; searchkeys for #sort, #thread, #uidsort, and #uidthread; and attr for #fetch and #uidfetch. 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-2491519?
The severity of REDHAT-BUG-2491519 is classified as medium with a score of 4.
How do I fix REDHAT-BUG-2491519?
To fix REDHAT-BUG-2491519, update Ruby Net::IMAP to version 0.6.5 or later and 0.5.15 or later.
What type of vulnerability is REDHAT-BUG-2491519?
REDHAT-BUG-2491519 is identified as a command injection vulnerability.
What software is affected by REDHAT-BUG-2491519?
The vulnerability affects the Ruby Net::IMAP implementation.
When was REDHAT-BUG-2491519 published?
REDHAT-BUG-2491519 was published on June 22, 2026.