---
cve: "CVE-2026-27820"
severity: "LOW"
cvss: 1.7
epss: "56%"
vendor: "Ruby"
kev: false
exploited: false
published: "2026-04-16 18:16:44"
tags: [cve, security, low]
source: tsecurity.de CVE-Dossier
exported: "2026-09-08T05:16:08+02:00"
---

# CVE-2026-27820

> 1.7 LOW · 🧪 PoC

## Beschreibung

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.

## CVSS-Vektor

```
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
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |

## Patch verfügbar (OSV)

- 2ce25b3cd8722250fd650c49bef96f8ce862aaf5 (Commit)
- c247f56b4f8e6a536770f4c8326a49f1b85bf667 (Commit)

## Referenzen

- <https://github.com/ruby/zlib/security/advisories/GHSA-g857-hhfv-j68w>
- <https://hackerone.com/reports/3467067>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-27820) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
