Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.4%top 66%

CVE-2026-42245: CWE-407: Inefficient Algorithmic Complexity in ruby net-imap

0
Low
VulnerabilityCVE-2026-42245cvecve-2026-42245cwe-407
Published: 05/09/2026 (05/09/2026, 19:37:08 UTC)
Source: CVE Database V5
Vendor/Project: ruby
Product: net-imap

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, Net::IMAP::ResponseReader has quadratic time complexity when reading large responses containing many string literals. A hostile server can send responses which are crafted to exhaust the client's CPU for a denial of service attack. This issue has been patched in versions 0.4.24, 0.5.14, and 0.6.4.

CVSS v4.0

Score 2.3low

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Affected software

net-imap
pkg:gem/net-imap
Affected versions
<0.4.24

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/17/2026, 09:54:40 UTC

Technical Analysis

The Ruby net-imap library's ResponseReader class had an inefficient algorithmic complexity (quadratic time) when reading large IMAP responses with many string literals. This flaw allows a malicious IMAP server to craft responses that cause the client to consume excessive CPU resources, leading to denial of service. The vulnerability affects net-imap versions before 0.4.24, 0.5.14, and 0.6.4. Fixed versions 0.4.24, 0.5.14, and 0.6.4 have resolved this inefficiency.

Potential Impact

A hostile IMAP server can exploit this vulnerability to cause the client application using net-imap to experience high CPU usage, potentially leading to denial of service conditions. There is no indication of data compromise or privilege escalation. The impact is limited to resource exhaustion on the client side.

Mitigation Recommendations

Upgrade net-imap to version 0.4.24, 0.5.14, or 0.6.4 or later, where this vulnerability has been patched. Patch status is confirmed by the version fixes noted in the advisory. No other mitigation is indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-25T05:37:12.118Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69ff93c0cbff5d86106e4579

Added to database: 05/09/2026, 20:06:24 UTC

Last enriched: 05/17/2026, 09:54:40 UTC

Last updated: 07/31/2026, 19:22:58 UTC

Views: 113

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses