Algorithmic Complexity Affecting ruby3.3-net-imap package, versions <0.6.4-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. 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-WOLFILATEST-RUBY33NETIMAP-16780270
  • published20 May 2026
  • disclosed9 May 2026

Introduced: 9 May 2026

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

How to fix?

Upgrade Wolfi ruby3.3-net-imap to version 0.6.4-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ruby3.3-net-imap package and not the ruby3.3-net-imap package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

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 Base Scores

version 3.1