ruby zlib up to 3.0.0/3.1.1/3.2.2 zlib::GzipReader buffer overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.4$0-$5k0.00

Summaryinfo

A vulnerability identified as critical has been detected in ruby zlib up to 3.0.0/3.1.1/3.2.2. The impacted element is the function zlib::GzipReader. The manipulation leads to buffer overflow. This vulnerability is uniquely identified as CVE-2026-27820. The attack is possible to be carried out remotely. No exploit exists. You should upgrade the affected component.

Detailsinfo

A vulnerability was found in ruby zlib up to 3.0.0/3.1.1/3.2.2. It has been rated as critical. This issue affects the function zlib::GzipReader. The manipulation with an unknown input leads to a buffer overflow vulnerability. Using CWE to declare the problem leads to CWE-120. The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer, leading to a buffer overflow. Impacted is availability. The summary by CVE is:

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.

It is possible to read the advisory at github.com. The identification of this vulnerability is CVE-2026-27820 since 02/24/2026. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details of the vulnerability are known, but there is no available exploit.

The vulnerability scanner Nessus provides a plugin with the ID 327617 (Ubuntu 16.04 LTS : Ruby vulnerabilities (USN-8556-1)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 3.0.1, 3.1.2 or 3.2.3 eliminates this vulnerability.

The vulnerability is also documented in the databases at Tenable (327617) and CERT Bund (WID-SEC-2026-0595). Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Affected

  • Debian Linux
  • Red Hat Enterprise Linux
  • SUSE Linux
  • Open Source Ruby
  • Ubuntu Linux
  • Oracle Linux

Productinfo

Type

Vendor

Name

Version

License

Website

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔒
VulDB Reliability: 🔍

CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒

CVSSv3info

VulDB Meta Base Score: 7.6
VulDB Meta Temp Score: 7.4

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔒
VulDB Reliability: 🔍

NVD Base Score: 9.8
NVD Vector: 🔒

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍

Exploitinginfo

Class: Buffer overflow
CWE: CWE-120 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒

Physical: No
Local: No
Remote: Yes

Availability: 🔒
Status: Not defined

EPSS Score: 🔒
EPSS Percentile: 🔒

Price Prediction: 🔍
Current Price Estimation: 🔒

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 327617
Nessus Name: Ubuntu 16.04 LTS : Ruby vulnerabilities (USN-8556-1)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔒

Upgrade: zlib 3.0.1/3.1.2/3.2.3

Timelineinfo

02/24/2026 CVE reserved
04/16/2026 +50 days Advisory disclosed
04/16/2026 +0 days VulDB entry created
08/11/2026 +116 days VulDB entry last update

Sourcesinfo

Product: github.com

Advisory: GHSA-g857-hhfv-j68w
Status: Confirmed

CVE: CVE-2026-27820 (🔒)
GCVE (CVE): GCVE-0-2026-27820
GCVE (VulDB): GCVE-100-357947
CERT Bund: WID-SEC-2026-0595 - Ruby: Schwachstelle ermöglicht Denial of Service

Entryinfo

Created: 04/16/2026 21:20
Updated: 08/11/2026 01:17
Changes: 04/16/2026 21:20 (70), 05/11/2026 08:06 (7), 05/21/2026 23:26 (12), 07/20/2026 02:06 (2), 08/11/2026 01:17 (2)
Complete: 🔍
Cache ID: 216::103

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!