CVE-2026-42256

net-imap: Denial of service via high iteration count for `SCRAM-*` authentication

State
Published
Severity
6.0 Medium
Published
May 9, 2026
Updated
May 11, 2026
Reserved
Apr 26, 2026

Read the record on cve.org

Description

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.

Scores

CVSSScoreVectorSource
4.06.0 MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NGitHub_M

Weaknesses

  • CWE-1322 Use of Blocking Code in Single-threaded, Non-blocking Context
  • CWE-770 Allocation of Resources Without Limits or Throttling

Affected Products

ProductVersions
net-imapruby
  • >= 0.4.0, < 0.4.24Affected
  • >= 0.5.0, < 0.5.14Affected
  • >= 0.6.0, < 0.6.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.