CVE-2026-42256Ruby-lang Net::imap
Medium 6.0 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Net::imap We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 4.0
- 6.0
- EPSS
- —
- Auth required
- No
- Published
- May 9, 2026
- Updated
- Jul 24, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Net::IMAP implements Internet Message Access Protocol (IMAP) client functionality in Ruby. From versions 0.4.0 to before 0.4.24, 0.5.0 to before 0.5.14, and 0.6.0 to before 0.6.4, when authenticating a connection with SCRAM-SHA1 or SCRAM-SHA256, a hostile server can perform a computational denial-of-service attack on the client process by sending a big iteration count value. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.
What to do
- Apply the vendor's security update for Net::imap.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | net-imap |
≥ 0.6.0 < 0.6.4 |
0.6.4 |
gem "net-imap", ">= 0.6.4" |
| RubyGems | net-imap |
≥ 0.5.0 < 0.5.14 |
0.5.14 |
gem "net-imap", ">= 0.5.14" |
| RubyGems | net-imap |
≥ 0.4.0 < 0.4.24 |
0.4.24 |
gem "net-imap", ">= 0.4.24" |
Per OSV / GitHub Advisories (GHSA-87pf-fpwv-p7m7). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | net::imap | ≥ 0.4.0 < 0.4.24 |
| ruby-lang | net::imap | ≥ 0.5.0 < 0.5.14 |
| ruby-lang | net::imap | ≥ 0.6.0 < 0.6.4 |
Official advisories
- ansible-rmt-server-3.2.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12677-1 · Nov 24, 2026 High
- Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update · Red Hat · RHSA-2026:50828 · Aug 27, 2026 High
- Red Hat Security Advisory: ruby:4.0 security, bug fix, and enhancement update · Red Hat · RHSA-2026:50827 · Aug 27, 2026 High
- Red Hat Security Advisory: ruby security, bug fix, and enhancement update · Red Hat · RHSA-2026:50778 · Aug 27, 2026 High
- Security update for rmt-server · SUSE · SUSE-SU-2026:3792-1 · Aug 25, 2026 Medium
- Security update for rmt-server · SUSE · openSUSE-SU-2026:21225-1 · Jul 3, 2026 Medium
Also: Red Hat (+6)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch
- github.com Release Notes
- github.com Release Notes
- github.com Release Notes
- github.com Mitigation Vendor Advisory