Affected versions
Ubuntu18.04:LTS/jruby
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu22.04:LTS/ruby3.0
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu24.04:LTS/ruby3.2
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu25.10/jruby
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu25.10/ruby3.3
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.04:LTS/ruby3.3
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/jruby
- Affected versions
- *
- Fixed version
- Not reported
Ubuntu26.10/ruby3.3
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:16.04:LTS/ruby2.3
- Affected versions
- <2.3.1-2~ubuntu16.04.16+esm15
- Fixed version
- 2.3.1-2~ubuntu16.04.16+esm15
UbuntuPro:18.04:LTS/ruby2.5
- Affected versions
- *
- Fixed version
- Not reported
UbuntuPro:20.04:LTS/ruby2.7
- Affected versions
- *
- Fixed version
- Not reported
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.

