{"id":"CVE-2026-42256","published":"2026-05-09T19:38:33Z","modified":"2026-05-11T17:04:42Z","title":"net-imap: Denial of service via high iteration count for `SCRAM-*` authentication","vendor":"ruby","product":"net-imap","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00519,"percentile":0.37425,"provenance":"source"},"cwes":[{"id":"CWE-1322","name":"Use of Blocking Code in Single-threaded, Non-blocking Context"},{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/ruby/net-imap/security/advisories/GHSA-87pf-fpwv-p7m7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ruby/net-imap/commit/158d0b505074397cdb5ceb58935e42dd2bcfa612","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/commit/808001bc45c06f7297a7e96d341279e041a7f7f4","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/commit/99f59eab6064955a23debd95410263ad144df758","tags":["x_refsource_MISC"]},{"url":"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.5.14","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/net-imap/releases/tag/v0.6.4","tags":["x_refsource_MISC"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":7.49},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"ruby","affectedVersions":[{"vendor":"ruby","product":"net-imap","versions":[">= 0.4.0, < 0.4.24",">= 0.5.0, < 0.5.14",">= 0.6.0, < 0.6.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-11T17:04:26.784816Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"net-imap","vulnerableRanges":[">=0.6.0, <0.6.4",">=0.5.0, <0.5.14",">=0.4.0, <0.4.24"],"patched":["0.6.4","0.5.14","0.4.24"],"from":["GHSA-87pf-fpwv-p7m7"],"provenance":"source"}],"summary":{"text":"The net-imap library in Ruby, which implements IMAP client functionality, contains a flaw in its SCRAM-SHA1 and SCRAM-SHA256 authentication handling that accepts unbounded iteration counts from the server. A hostile IMAP server can exploit this, given that the client connects to it and performs SCRAM authentication with user interaction, to send an oversized iteration count value and make the client process consume excessive computation, causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:45Z"},"euvd":{"id":"EUVD-2026-28925","exploited":false,"provenance":"source"}}