Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Prior to versions 0.4.24, 0.5.14, and 0.6.4, several Net::IMAP commands accept a raw string argument that is sent to the server without validation or escaping. If this string is derived from user-controlled input, it may contain contain CRLF sequences, which an attacker can use to inject arbitrary IMAP commands. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.
The product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Net::imap | Ruby-lang | * | 0.4.24 (excluding) |
| Net::imap | Ruby-lang | 0.5.0 (including) | 0.5.14 (excluding) |
| Net::imap | Ruby-lang | 0.6.0 (including) | 0.6.4 (excluding) |
| Jruby | Ubuntu | esm-apps-legacy/xenial | * |
| Jruby | Ubuntu | esm-apps/bionic | * |
| Jruby | Ubuntu | esm-apps/focal | * |
| Jruby | Ubuntu | esm-apps/noble | * |
| Jruby | Ubuntu | esm-apps/resolute | * |
| Jruby | Ubuntu | esm-apps/xenial | * |
| Jruby | Ubuntu | esm-infra-legacy/trusty | * |
| Jruby | Ubuntu | noble | * |
| Jruby | Ubuntu | questing | * |
| Jruby | Ubuntu | resolute | * |
| Ruby2.3 | Ubuntu | esm-infra-legacy/xenial | * |
| Ruby2.3 | Ubuntu | esm-infra/xenial | * |
| Ruby2.5 | Ubuntu | esm-infra/bionic | * |
| Ruby2.7 | Ubuntu | esm-infra/focal | * |
| Ruby3.0 | Ubuntu | jammy | * |
| Ruby3.2 | Ubuntu | noble | * |
| Ruby3.3 | Ubuntu | questing | * |
| Ruby3.3 | Ubuntu | resolute | * |
Many protocols and products have their own custom command language. While OS or shell command strings are frequently discovered and targeted, developers may not realize that these other command languages might also be vulnerable to attacks.