Ruby net-imap
net-imap: Command Injection via "raw" arguments to multiple commands
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS9.8critical · scored by NVD · CWE-93
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
ruby net-imap
- < 0.4.24
- >= 0.5.0, < 0.5.14
- >= 0.6.0, < 0.6.4
Fixed in 0.4.24, 0.5.14, 0.6.4
Mitigation
Upgrade net-imap to 0.4.24 or 0.5.14 or 0.6.4 or later.
References
- Vendor advisory github.com/ruby/net-imap/security/advisories/G…
- Release notes github.com/ruby/net-imap/releases/tag/v0.4.24
- Release notes github.com/ruby/net-imap/releases/tag/v0.5.14
1 more
- Release notes github.com/ruby/net-imap/releases/tag/v0.6.4
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.