← console
voxell vciy

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

ROUTINE

Telemetry drift only. No threshold crossed and no authority ruling changed.

CVE record, CISA KEV and EPSS as of 2026-12-06.

CVEs like this one computed, by meaning

What to do now held facts and links

  1. Upgrade to the fixed version for your release line, or later: zlib 3.0.1; zlib 3.1.2; zlib 3.2.3 upper bounds of the CVE record's affected ranges
  2. Record your decision, dated and frozen with today's evidence: patch by a date · mitigated by a compensating control · deferred · accepted the risk · not affected
  3. Check your version against the ranges this record publishes.

What it is stated by the CNA

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.

weakness
CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'); CWE-131: Incorrect Calculation of Buffer Size
affected
ruby zlib
published ranges
ruby-lang zlib < 3.0.1; ruby-lang zlib >= 3.1.0 < 3.1.2; ruby-lang zlib >= 3.2.0 < 3.2.3
first unaffected version, by branch
zlib 3.0.1; zlib 3.1.2; zlib 3.2.3
fixed by package (from OSV advisories)
zlib (RubyGems): 3.0.1; 3.1.2; 3.2.3 GHSA-g857-hhfv-j68w
severity
1.7 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
assigned by
GitHub_M
published
2026-04-16

check us github.com hackerone.com

Exploit code held, dated

exploit code
None held in the PoC-in-GitHub feed. A public repository changes this brief.

What moved held, dated

dateEPSSevent
17 Apr 20260.00042
21 Apr 20260.00014
22 Apr 20260.00018
28 Apr 20260.00013
18 May 20260.00014
22 May 20260.00017
15 Jun 20260.00561scoring model v2026.06.15
28 Sep 20260.00752
25 Oct 20260.00561
28 Nov 20260.00781
1 Dec 20260.00583
3 Dec 20260.00596

12 observations held. A step marked with a scoring model moved because the measurement was replaced, not because the vulnerability changed.

Outside the record model-written, researched, cited

This section reads the record's references and adds cited findings from outside it. It needs an account. Everything above is held facts and is complete without it.

Get started with CVE-2026-27820 (20s setup) Triage in Vesper (no login) · Sign in to add the researched section

What would change this brief held, dated

CISA KEV
Not listed in the catalogue we hold. A listing changes this brief.
exploit probability
0.01 on 2026-12-03 (FIRST's EPSS, a probability and not evidence of exploitation). Next band line: 10% (0.10). Crossing a line changes this brief.
fix
Held: zlib 3.0.1; zlib 3.1.2; zlib 3.2.3. A newer fix from the CNA or OSV changes this brief.

Watch this CVE Guided 20s setup · What counts as a move

How to check this

Every value above is held with two dates: when it was true upstream (as_of) and when we recorded it (tx_from). Re-derive the exploit probability as it stood on any date:

SELECT value, source, source_version, as_of, tx_from
FROM volatile_valid_as_of('CVE-2026-27820', '2026-12-06T23:59:59.999999Z', now());