CVE-2026-27820CRITICAL 9.8EPSS p42.2%
CVE-2026-27820CVE-2026-27820
Description
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.
Scoring
| CVSS 3.1 | 9.8 (CRITICAL) |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| EPSS | 0.56% probability of exploitation · percentile 42.2% · 2026-06-18T12:00:27Z |
| Published | 2026-04-16 |
| Last modified | 2026-05-21 |
Underlying weaknesses· 2
References
2
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Weakness | Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')cwe-120 | 0% | live |
| Weakness | Incorrect Calculation of Buffer Sizecwe-131 | 0% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.