CVE-2026-27820Ruby-lang Zlib
Low 1.7 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Zlib We alert you by email or Slack (account required).
- Priority
- 25
- CVSS 4.0
- 1.7
- EPSS
- —
- Auth required
- No
- Published
- Apr 16, 2026
- Updated
- Oct 26, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Zlib.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | zlib |
≥ 3.2.0 < 3.2.3 |
3.2.3 |
gem "zlib", ">= 3.2.3" |
| RubyGems | zlib |
≥ 3.1.0 < 3.1.2 |
3.1.2 |
gem "zlib", ">= 3.1.2" |
| RubyGems | zlib |
< 3.0.1 |
3.0.1 |
gem "zlib", ">= 3.0.1" |
Per OSV / GitHub Advisories (GHSA-g857-hhfv-j68w). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | zlib | < 3.0.1 |
| ruby-lang | zlib | ≥ 3.1.0 < 3.1.2 |
| ruby-lang | zlib | ≥ 3.2.0 < 3.2.3 |
Official advisories
- Security update for ruby2.5 · SUSE · SUSE-SU-2026:5416-1 · Nov 23, 2026 High
- Security update for ruby3.4 · SUSE · openSUSE-SU-2026:21878-1 · Nov 23, 2026 High
- Security update for ruby3.4 · SUSE · SUSE-SU-2026:24933-1 · Sep 18, 2026 High
- Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update · Red Hat · RHSA-2026:50828 · Aug 27, 2026 High
- Red Hat Security Advisory: ruby:4.0 security, bug fix, and enhancement update · Red Hat · RHSA-2026:50827 · Aug 27, 2026 High
- Red Hat Security Advisory: ruby security, bug fix, and enhancement update · Red Hat · RHSA-2026:50778 · Aug 27, 2026 High
Also: Red Hat (+5), SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory
- hackerone.com Permissions Required