Buffer Overflow Vulnerability in zlib Ruby Interface from Ruby
CVE-2026-27820
1.7LOW
What is CVE-2026-27820?
A buffer overflow vulnerability exists in the zlib Ruby interface, specifically in the Zlib::GzipReader. The flaw lies within the zstream_buffer_ungets function, as it incorrectly handles input bytes, potentially leading to memory corruption when the data being written exceeds the available buffer capacity. This issue has been addressed in the updates with versions 3.0.1, 3.1.2, and 3.2.3, which remedy the flawed memory handling.
Affected Version(s)
zlib < 3.0.1 < 3.0.1
zlib >= 3.1.0, < 3.1.2 < 3.1.0, 3.1.2
zlib >= 3.2.0, < 3.2.3 < 3.2.0, 3.2.3
