CVE Explorer
CVE-2026-42257
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-77","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-93","description":"CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"net-imap","vendor":"ruby","versions":[{"status":"affected","version":"< 0.4.24"},{"status":"affected","version":">= 0.5.0, < 0.5.14"},{"status":"affected","version":">= 0.6.0, < 0.6.4"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"LOCAL","baseScore":5.8,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","vectorString":"CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-77","description":"CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-93","description":"CWE-93: Improper Neutralization of CRLF Sequences ('CRLF Injection')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/ruby/net-imap/releases/tag/v0.4.24","tags":["x_refsource_MISC"],"url":"https://github.com/ruby/net-imap/releases/tag/v0.4.24"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/references/1
{"name":"https://github.com/ruby/net-imap/releases/tag/v0.5.14","tags":["x_refsource_MISC"],"url":"https://github.com/ruby/net-imap/releases/tag/v0.5.14"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/references/2
{"name":"https://github.com/ruby/net-imap/releases/tag/v0.6.4","tags":["x_refsource_MISC"],"url":"https://github.com/ruby/net-imap/releases/tag/v0.6.4"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/references/3
{"name":"https://github.com/ruby/net-imap/security/advisories/GHSA-hm49-wcqc-g2xg","tags":["x_refsource_CONFIRM"],"url":"https://github.com/ruby/net-imap/security/advisories/GHSA-hm49-wcqc-g2xg"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e7a439e92b57ba8af2b917606ca674b7f83612a983026363b3c53240fdd72870 · sha256:da6a241ab0ee6fbb… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.