zlib is vulnerable to Buffer Overflow
80
CVE Score
High
Buffer Overflow
Affected versions of the zlib gem are vulnerable to a buffer overflow in Zlib::GzipReader. The zstream_buffer_ungets function prepends caller-provided bytes to an existing output buffer but does not ensure that the underlying Ruby string has sufficient capacity before shifting existing data with memmove. This can lead to a buffer overflow and memory corruption when the buffer length exceeds its allocated capacity.
Upgrade the zlib library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.0.1 - 3.0.0
Fixed in 3.0.13.1.0 - 3.1.1
Fixed in 3.1.23.2.0 - 3.2.2
Fixed in 3.2.3zlib is vulnerable to Buffer Overflow in versions 0.0.1 - 3.0.0, 3.1.0 - 3.1.1 and 3.2.0 - 3.2.2.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.