CVE-2026-27820 — Buffer Overflow in zlib — CVE Details
Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption
Summary
Advisory Timeline
- First published April 16, 2026 (179 days ago).
- Last revised September 10, 2026 — 146 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
gem install zlib -v 3.2.3
gem install zlib -v 3.0.1
gem install zlib -v 3.1.2
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Affects 1 ecosystem: rubygems (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-120Buffer Copy Without Checking SizeMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/ruby/zlib/security/advisories/GHSA-g857-hhfv-j68wWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-27820ADVISORY
- https://hackerone.com/reports/3467067WEB
- https://github.com/ruby/zlibPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/zlib/CVE-2026-27820.ymlWEB
- https://www.ruby-lang.org/en/news/2026/03/05/buffer-overflow-zlib-cve-2026-27820WEB
Frequently Asked Questions
- What is CVE-2026-27820?
- Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2026-27820?
- CVE-2026-27820 affects zlib. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-27820 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-107715MEDIUM
Mechanize sends credential headers to another host after an HTTP redirect
- CVE-2026-107399MEDIUM
Mechanize sends credential headers to another origin after a meta refresh
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies