REDHAT-BUG-2491519: Command Injection

Published Jun 22, 2026
·
Updated

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

2 affected components
Ruby Net::IMAP>0.6.5<0.6.5
Net::IMAP<0.5.15

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Net::IMAP to a version that resolves this vulnerability.

    Fixed in 0.6.5
  2. Upgrade

    Upgrade Net::IMAP to a version that resolves this vulnerability.

    Fixed in 0.5.15

Event History

Jun 22, 2026
Data Sourced
via Red Hat·09:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2491519?

The severity of REDHAT-BUG-2491519 is classified as medium with a score of 4.

2

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.

3

What type of vulnerability is REDHAT-BUG-2491519?

REDHAT-BUG-2491519 is identified as a command injection vulnerability.

4

What software is affected by REDHAT-BUG-2491519?

The vulnerability affects the Ruby Net::IMAP implementation.

5

When was REDHAT-BUG-2491519 published?

REDHAT-BUG-2491519 was published on June 22, 2026.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203