CVE-2026-42256: CWE-1322: Use of Blocking Code in Single-threaded, Non-blocking Context in ruby net-imap
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.
AI Analysis
Technical Summary
The Ruby net-imap library, which implements IMAP client functionality, contains a vulnerability (CVE-2026-42256) in 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 using SCRAM-SHA1 or SCRAM-SHA256, a malicious IMAP server can send a large iteration count value causing the client to perform excessive computation, resulting in a computational denial-of-service (DoS). This arises from the use of blocking code in a single-threaded, non-blocking context (CWE-1322). The issue has been addressed in versions 0.4.24, 0.5.14, and 0.6.4.
Potential Impact
An attacker controlling an IMAP server can cause a client using vulnerable net-imap versions to consume excessive CPU resources during authentication, leading to a denial-of-service condition. This can degrade or halt client operations but does not involve code execution or data compromise. No known active exploitation has been reported.
Mitigation Recommendations
Upgrading net-imap to versions 0.4.24, 0.5.14, or 0.6.4 or later fully mitigates this vulnerability. Since these patched versions address the issue, users should apply these updates promptly. Patch status is confirmed by the version information in the advisory. No additional vendor advisory content is available to indicate alternative mitigations or that no action is required.
CVE-2026-42256: CWE-1322: Use of Blocking Code in Single-threaded, Non-blocking Context in ruby net-imap
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.
CVSS v4.0
Score 6.0medium
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Ruby net-imap library, which implements IMAP client functionality, contains a vulnerability (CVE-2026-42256) in 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 using SCRAM-SHA1 or SCRAM-SHA256, a malicious IMAP server can send a large iteration count value causing the client to perform excessive computation, resulting in a computational denial-of-service (DoS). This arises from the use of blocking code in a single-threaded, non-blocking context (CWE-1322). The issue has been addressed in versions 0.4.24, 0.5.14, and 0.6.4.
Potential Impact
An attacker controlling an IMAP server can cause a client using vulnerable net-imap versions to consume excessive CPU resources during authentication, leading to a denial-of-service condition. This can degrade or halt client operations but does not involve code execution or data compromise. No known active exploitation has been reported.
Mitigation Recommendations
Upgrading net-imap to versions 0.4.24, 0.5.14, or 0.6.4 or later fully mitigates this vulnerability. Since these patched versions address the issue, users should apply these updates promptly. Patch status is confirmed by the version information in the advisory. No additional vendor advisory content is available to indicate alternative mitigations or that no action is required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-26T11:53:27.704Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ff93c0cbff5d86106e458c
Added to database: 05/09/2026, 20:06:24 UTC
Last enriched: 05/17/2026, 10:43:46 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 131
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.