zlib: Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ruby | zlib | affected |
|
Configuration 1 [-]
|
No data.
| Vendor | Product | Versions | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Ruby | Zlib |
|
| Source | ID | Title |
|---|---|---|
Debian DLA |
DLA-4716-1 | ruby2.7 security update |
Github GHSA |
GHSA-g857-hhfv-j68w | Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption |
Ubuntu USN |
USN-8556-1 | Ruby vulnerabilities |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.561% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Ruby-lang
Ruby-lang zlib |
|
| CPEs | cpe:2.3:a:ruby-lang:zlib:*:*:*:*:*:ruby:*:* | |
| Vendors & Products |
Ruby-lang
Ruby-lang zlib |
|
| Metrics |
cvssV3_1
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Ruby
Ruby zlib |
|
| Vendors & Products |
Ruby
Ruby zlib |
| Type | Values Removed | Values Added |
|---|---|---|
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | zlib: Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption | |
| Weaknesses | CWE-120 CWE-131 |
|
| References |
| |
| Metrics |
cvssV4_0
|