CVE-2026-27820: Vulnerability in Ruby-lang zlib

Critical. zlib is a Ruby interface for the zlib compression/decompression library. Versions 3.0.0 and below, 3.1.0, 3.1.1, 3.2.0 and 3.2.1 contain a buffer overflow vulnerability in the Zlib::GzipReader. The zstream_buffer_ungets function prepends caller-provided bytes ahead of previously produced output but fails to guarantee the backing Ruby string has enough capacity before the memmove shifts the existing data. This can...

RubyGems, CWE-120, CWE-131

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
0.6 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-g857-hhfv-j68w
EU ID
EUVD-2026-23278
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-120, CWE-131
Published
16 Apr 2026
Last change
26 Oct 2026
Likelihood rank
Higher than 50 % of all rated vulnerabilities
Analysis status
Analyzed
Ecosystem
RubyGems

Affected products

Affected versions and the first fixed release

  • Ruby-lang zlib Before 3.0.1; From 3.1.0 before 3.1.2; From 3.2.0 before 3.2.3. Fixed in 3.0.1, 3.1.2, 3.2.3

Affected packages

Vulnerable version ranges and fixed releases

  • zlib RubyGems, Affected from 3.2.0 before 3.2.3. Fixed in 3.2.3

Advisories

Vendor and security advisories

Related