Inefficient Algorithmic Complexity Affecting net-imap package, versions <0.4.24>=0.5.0, <0.5.14>=0.6.0, <0.6.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-NETIMAP-16420226
  • published6 May 2026
  • disclosed4 May 2026
  • creditMasamune

Introduced: 4 May 2026

NewCVE-2026-42245  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade net-imap to version 0.4.24, 0.5.14, 0.6.4 or higher.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity through the ResponseReader class. An attacker can exhaust the client's CPU by sending specially crafted IMAP responses containing many string literals, leading to significant performance degradation in the client's receiver thread.

CVSS Base Scores

version 4.0
version 3.1