Intel

AIKIDO-2026-10288

zlib is vulnerable to Buffer Overflow

CVE-2026-27820Published Mar 5, 2026
March 5, 2026

80

CVE Score

High

Buffer Overflow

Are you affected? Scan for Free

TL;DR

Affected versions of the zlib gem are vulnerable to a buffer overflow in Zlib::GzipReader. The zstream_buffer_ungets function prepends caller-provided bytes to an existing output buffer but does not ensure that the underlying Ruby string has sufficient capacity before shifting existing data with memmove. This can lead to a buffer overflow and memory corruption when the buffer length exceeds its allocated capacity.

How do I fix this?

Upgrade the zlib library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

0.0.1 - 3.0.0

Fixed in 3.0.1

3.1.0 - 3.1.1

Fixed in 3.1.2

3.2.0 - 3.2.2

Fixed in 3.2.3

Background info

zlib is vulnerable to Buffer Overflow in versions 0.0.1 - 3.0.0, 3.1.0 - 3.1.1 and 3.2.0 - 3.2.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea