9.8

CVE-2026-27820: ruby-lang zlib Classic Buffer Overflow

CVSS: 9.8v3.1CriticalAnalyzed
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) Classic Buffer Overflow vulnerability in ruby-lang zlib. EPSS estimates a 0.75% chance of exploitation in the next 30 days, higher than 54.1% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
0.75%
0%100%
Low · +0.19 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 11 · Related 4

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.75%

Chance of exploitation in the next 30 days

Percentile

54%

Versus all other CVEs

30-day change

+0.19 pp

From 0.56% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.75%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

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)
Alpine1 product
  • ruby< 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