Skip to main content
← All vulnerabilities
CVE-2026-42257GHSA-HM49-WCQC-G2XG

net-imap: Command Injection via "raw" arguments to multiple commands

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.4.24, 0.5.14, 0.6.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • ruby net-imap

    fixed in 0.4.24; From 0.5.0 · fixed in 0.5.14; From 0.6.0 · fixed in 0.6.4

  • net-imapRubyGems

    From 0.6.0 · fixed in 0.6.4

  • net-imapRubyGems

    From 0.5.0 · fixed in 0.5.14

  • net-imapRubyGems

    fixed in 0.4.24

References 4

GitHub · ruby/net-imap