Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. Certain commands accept a raw data argument that is sent verbatim after validation. If a server does not support non-synchronizing literals (literals that do not require a server continuation response), it may interpret specific byte sequences as the end of a malformed command line. This allows an attacker to inject arbitrary IMAP commands via a CRLF (Carriage Return Line Feed) injection attack, where the contents of the literal are interpreted as new pipelined commands. This issue affects the `criteria` parameter for `search()` and `uid search()`, the `search keys` parameter for `sort()`, `thread()`, `uid sort()`, and `uid thread()`, and the `attr` parameter for `fetch()` and `uid fetch()`.