Buffer Overflow Affecting zlib package, versions <3.0.1>=3.1.0, <3.1.2>=3.2.0, <3.2.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-ZLIB-15470135
  • published12 Mar 2026
  • disclosed7 Mar 2026
  • creditNathaniel Oh

Introduced: 7 Mar 2026

NewCVE-2026-27820  (opens in a new tab)
CWE-120  (opens in a new tab)

How to fix?

Upgrade zlib to version 3.0.1, 3.1.2, 3.2.3 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow via the zstream_buffer_ungets() function. An attacker can cause memory corruption by providing input that causes the buffer length to exceed its capacity, leading to a buffer overflow during memory operations.

CVSS Base Scores

version 4.0
version 3.1