GHSA-g857-hhfv-j68w · Severity: medium · Ecosystem: rubygems — Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption
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.
Conclusion & alert: CVE-2026-27820 is rated Low Risk (11.3/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.04%). Mandatory action: Low composite risk—no urgent action required; patch on your normal maintenance cycle and revisit priority if CVSS or EPSS increases.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-17 | — | 0.04% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 1.7 | 4.0 | LOW |
|
— | — | [email protected] |
| 9.8 | 3.1 | CRITICAL |
|
3.9 | 5.9 | [email protected] |
GHSA-g857-hhfv-j68w · Severity: medium · Ecosystem: rubygems — Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2026-27820: 1 source package rows (ruby); 2 state rows across 2 repos (3.23-main, edge-main); fixed 2, open 0. | https://security.alpinelinux.org/vuln/CVE-2026-27820 |
debian
|
not yet assigned | CVE-2026-27820 not yet assigned priority: Debian including 3 source packages (ruby2.7, ruby3.1, ruby3.3), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 5. | https://security-tracker.debian.org/tracker/CVE-2026-27820 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2026-27820 |
suse
|
high | CVE-2026-27820 severity important: SUSE including 7 source package names (libruby2_5-2_5-2.5.9-150700.24.6.1, ruby, …), 51 product×package rows across 24 product lines (Image SLES15-SP7-SAP-Azure-LI-BYOS-Production, Image SLES15-SP7-SAP-Azure-VLI-BYOS-Production, … (24 product lines)): Known Not Affected 37, Fixed 14. | https://www.suse.com/security/cve/CVE-2026-27820/ |
ubuntu
|
medium | CVE-2026-27820 medium priority: Ubuntu including 7 source packages (jruby, ruby2.3, …), 42 status rows across 9 suites (bionic, focal, jammy, noble, questing, resolute, trusty, upstream, xenial): DNE 21, needs-triage 21. | https://ubuntu.com/security/CVE-2026-27820 |
| URL | Tags |
|---|---|
| https://github.com/ruby/zlib/security/advisories/GHSA-g857-hhfv-j68w | Vendor Advisory |
| https://hackerone.com/reports/3467067 | Permissions Required |