CVE-2026-27820: zlib: Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption
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
- 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
- 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
- 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
| date | EPSS | event |
|---|---|---|
| 17 Apr 2026 | 0.00042 | |
| 21 Apr 2026 | 0.00014 | |
| 22 Apr 2026 | 0.00018 | |
| 28 Apr 2026 | 0.00013 | |
| 18 May 2026 | 0.00014 | |
| 22 May 2026 | 0.00017 | |
| 15 Jun 2026 | 0.00561 | scoring model v2026.06.15 |
| 28 Sep 2026 | 0.00752 | |
| 25 Oct 2026 | 0.00561 | |
| 28 Nov 2026 | 0.00781 | |
| 1 Dec 2026 | 0.00583 | |
| 3 Dec 2026 | 0.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.
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());