CVE-2026-42257
Published:May 09, 2026
Updated:May 16, 2026
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.
Affected Packages
https://github.com/ruby/net-imap.git (GITHUB):
Affected version(s) >=v0.5.0 <v0.5.14Fix Suggestion:
Update to version v0.5.14https://github.com/ruby/net-imap.git (GITHUB):
Affected version(s) >=v0.6.0 <v0.6.4Fix Suggestion:
Update to version v0.6.4https://github.com/ruby/net-imap.git (GITHUB):
Affected version(s) >=v0.1.0 <v0.4.24Fix Suggestion:
Update to version v0.4.24net-imap (RUBY):
Affected version(s) >=0.1.0 <0.4.24Fix Suggestion:
Update to version 0.4.24net-imap (RUBY):
Affected version(s) >=0.5.0 <0.5.14Fix Suggestion:
Update to version 0.5.14net-imap (RUBY):
Affected version(s) >=0.1.0 <0.4.24Fix Suggestion:
Update to version 0.4.24net-imap (RUBY):
Affected version(s) >=0.6.0 <0.6.4Fix Suggestion:
Update to version 0.6.4Related Resources (11)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.8
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.1
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
LOW
Weakness Type (CWE)
EPSS
Base Score:
0.03