9.8

CVE-2026-27820: zlib: Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption

Analyzed
AliasesALPINE-CVE-2026-27820UBUNTU-CVE-2026-27820DEBIAN-CVE-2026-27820
Published 16-04-2026Last modified 16-04-2026

Vulnerability summary

CVE-2026-27820 is a critical (CVSS 9.8) vulnerability in ruby-lang zlib. EPSS estimates a 0.60% chance of exploitation in the next 30 days, higher than 49.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 1.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.60%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 15 · Related 6

Timeline

  1. 16-04-2026
    PublishedVulnerability first disclosed.
  2. 16-04-2026
    Last modifiedVulnerability information updated.

Description

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 lead to memory corruption when the buffer length exceeds capacity. This issue has been fixed in versions 3.0.1, 3.1.2 and 3.2.3.

CVSS metrics

10 scores · 7 sources · 2 versions

EPSS trend

Probability

0.60%

Chance of exploitation in the next 30 days

Percentile

50%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 0.56% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu7 products
  • jrubyAll versions (No fix recorded)
  • ruby2.3< 2.3.1-2~ubuntu16.04.16+esm15
  • ruby2.5All versions (No fix recorded)
  • ruby2.7All versions (No fix recorded)
  • ruby3.0All versions (No fix recorded)
Debian2 products
  • ruby3.1All versions (No fix recorded)
  • ruby3.3All versions (No fix recorded) | < 3.3.13-0+deb13u1 | < 3.3.14-0.1
Alpine1 product
  • ruby< 3.3.13-r0 | < 3.4.9-r0
Chainguard1 product
  • truffleruby< 34.0.1-r0
Ruby1 product
  • zlib< 3.0.1 | ≥ 3.1.0, < 3.1.2 | ≥ 3.2.0, < 3.2.3
Ruby-lang1 product
  • zlib< 3.0.1 | ≥ 3.1.0, < 3.1.2 | ≥ 3.2.0, < 3.2.3
RubyGems1 product
  • zlib≥ 3.2.0, < 3.2.3 | ≥ 3.1.0, < 3.1.2 | < 3.0.1

7 vendors · 14 products

References

12 links
Show all 12 references