CVE & CISA-KEV Catalog

CVE-2026-42257

MEDIUM
9.8
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
ruby3Red Hat / RHEL
Fixed in:3-main@aarch64RHSA-2026:40380
Fixed in:4-main@noarchRHSA-2026:38694
Fixed in:3-main@noarchRHSA-2026:40380
Fixed in:4-main@aarch64RHSA-2026:38694
Fixed in:4-main@x86_64RHSA-2026:38694
Fixed in:3-main@x86_64RHSA-2026:40380
Fixed in:4-main@srcRHSA-2026:38694
Fixed in:3-main@srcRHSA-2026:40380
ruby3Rocky
Fixed in:3-main@aarch64RHSA-2026:40380
Fixed in:4-main@aarch64RHSA-2026:38694
Fixed in:4-main@x86_64RHSA-2026:38694
Fixed in:3-main@srcRHSA-2026:40380
Fixed in:4-main@noarchRHSA-2026:38694
Fixed in:4-main@srcRHSA-2026:38694
Fixed in:3-main@noarchRHSA-2026:40380
Fixed in:3-main@x86_64RHSA-2026:40380
ruby4Red Hat / RHEL
Fixed in:0-main@aarch64RHSA-2026:36978
Fixed in:0-main@x86_64RHSA-2026:36978
Fixed in:0-main@noarchRHSA-2026:36978
Fixed in:0-main@srcRHSA-2026:36978
ruby4Rocky
Fixed in:0-main@aarch64RHSA-2026:36978
Fixed in:0-main@x86_64RHSA-2026:36978
Fixed in:0-main@noarchRHSA-2026:36978
Fixed in:0-main@srcRHSA-2026:36978
libruby2.3Ubuntu
Fixed in:2.3.1-2~ubuntu16.04.16+esm14USN-8431-1
libruby2.5Ubuntu
Fixed in:2.5.1-1ubuntu1.16+esm8USN-8431-1
ruby2.3Ubuntu
Fixed in:2.3.1-2~ubuntu16.04.16+esm14USN-8431-1
ruby2.5Ubuntu
Fixed in:2.5.1-1ubuntu1.16+esm8USN-8431-1

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.43%probability of exploitation in 30 days
35thpercentile

Low risk: more likely to be exploited than 35% of all known CVEs.

References

Vendor Advisory1

Related Vulnerabilities

Other CWE-77 (Command Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-3400Critical10.0100%KEV + Ransom-
CVE-2024-21887Critical9.1100%KEV + Ransom-
CVE-2023-1671Critical9.8100%KEVFix
CVE-2023-1389High8.8100%KEVFix
CVE-2021-1498Critical9.8100%KEVFix
CVE-2012-1823Critical9.8100%KEVFix
Embed a live status badge for CVE-2026-42257
CVE-2026-42257 severity badge

Markdown

[![CVE-2026-42257](https://tridentstack.com/cve/badge/CVE-2026-42257.svg)](https://tridentstack.com/cve/CVE-2026-42257)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-42257"><img src="https://tridentstack.com/cve/badge/CVE-2026-42257.svg" alt="CVE-2026-42257"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-05-18.