Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-27820: CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') in ruby zlib

0
Low
VulnerabilityCVE-2026-27820cvecve-2026-27820cwe-120cwe-131
Published: Thu Apr 16 2026 (04/16/2026, 17:27:48 UTC)
Source: CVE Database V5
Vendor/Project: ruby
Product: zlib

Description

A buffer overflow vulnerability exists in the Ruby zlib library's Zlib::GzipReader component in certain versions prior to 3. 0. 1, 3. 1. 2, and 3. 2. 3. The issue arises because the zstream_buffer_ungets function does not ensure the backing Ruby string has sufficient capacity before shifting data, leading to potential memory corruption. This vulnerability has a low CVSS score of 1. 7 and no known exploits in the wild.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/16/2026, 18:16:59 UTC

Technical Analysis

The Ruby zlib library versions 3.0.0 and below, 3.1.0, 3.1.1, 3.2.0, and 3.2.1 contain a classic buffer overflow vulnerability (CWE-120) in the Zlib::GzipReader. Specifically, the zstream_buffer_ungets function prepends bytes to previously produced output without verifying that the backing Ruby string has enough capacity before performing a memmove operation. This can cause memory corruption when the buffer length exceeds its capacity. The vulnerability is addressed in versions 3.0.1, 3.1.2, and 3.2.3.

Potential Impact

Successful exploitation could lead to memory corruption, which may cause application crashes or undefined behavior. The CVSS score of 1.7 indicates a low severity impact, and there are no known exploits in the wild at this time.

Mitigation Recommendations

Upgrade Ruby zlib to version 3.0.1, 3.1.2, or 3.2.3 or later, where this buffer overflow vulnerability has been fixed. Patch status is confirmed by the version fixes listed in the advisory. No additional mitigation is indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-02-24T02:32:39.799Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69e1241082d89c981fafb513

Added to database: 4/16/2026, 6:01:52 PM

Last enriched: 4/16/2026, 6:16:59 PM

Last updated: 4/16/2026, 8:30:21 PM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses