Vulnerability
CVE-2026-47240
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 #uid_search; search_keys for #sort, #thread, #uid_sort, and #uid_thread; and attr for #fetch and #uid_fetch. This vulnerability is fixed in 0.6.5 and 0.5.15.
154 advisories report this vulnerability, across 14 ecosystems.
Advisories in Wolfi
- CGA-3wxx-4wpf-c6rp
- CGA-6c7f-5mr4-xgrh
- CGA-8g39-grwr-cj3m
- CGA-8gqp-83vc-x2f4
- CGA-954v-j22j-jcw6
- CGA-982v-x7x9-q8x6
- CGA-9qv9-x5vc-w2c5
- CGA-c9vw-66hj-5g34
- CGA-cqx4-r8fq-f67w
- CGA-f93m-6g9g-2f23
- CGA-fjcg-9rh8-4p24
- CGA-fv5f-4c8p-885q
- CGA-gw89-xv4j-5r5p
- CGA-j2vm-6hv9-ghmx
- CGA-m26v-8m35-j274
- CGA-m472-jc5x-fc33
- CGA-mc99-jfgg-84v8
- CGA-p36g-6xcm-hx28
- CGA-p5jx-h284-59wq
- CGA-qjgc-j7qq-fvc2
- CGA-v77m-22hr-4h5f
- CGA-vwmg-4hgf-wpm6
- CGA-x9rx-59wp-xw79
- CGA-xfm2-c7g2-539v
- CGA-xq6x-w7pj-33j8