ADVISORIES

Vulnerability

CVE-2026-27820

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.

44 advisories report this vulnerability, across 14 ecosystems.

Advisories

  • ALAS2023-2026-1807

    Amazon Linux 2023 - ALAS2023-2026-1807: Important priority package update for ruby3.4

    Important CVE-2026-27820CVE-2026-42245CVE-2026-42246CVE-2026-42256 Amazon Linux Updated 8 June 2026
  • ALPINE-CVE-2026-27820

    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…

    CVE-2026-27820 Alpine Updated 27 October 2026
  • ALPINE-EDGE-CVE-2026-27820
    CVE-2026-27820 Alpine Updated 18 November 2026
  • ALSA-2026:50728

    Important: ruby:3.3 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 AlmaLinux Updated 29 October 2026
  • ALSA-2026:50773

    Important: ruby4.0 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 AlmaLinux Updated 16 November 2026
  • ALSA-2026:50778

    Important: ruby security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 AlmaLinux Updated 16 November 2026
  • ALSA-2026:50827

    Important: ruby:4.0 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 AlmaLinux Updated 29 October 2026
  • ALSA-2026:50828

    Important: ruby:3.3 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 AlmaLinux Updated 29 October 2026
  • AZL-83450

    CVE-2026-27820 affecting package ruby for versions less than 3.3.5-8

    CVE-2026-27820 Azure Linux Updated 31 October 2026
  • CGA-74vg-9qrm-r27f
    CVE-2026-27820 Chainguard Updated 5 November 2026
  • CGA-gx38-97hq-2r5c
    CVE-2026-27820 Chainguard Updated 5 November 2026
  • DEBIAN-CVE-2026-27820

    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…

    CVE-2026-27820 Debian Updated 7 November 2026
  • DLA-4716-1

    ruby2.7 - security update

    CVE-2025-24294CVE-2025-61594CVE-2026-27820CVE-2026-41316 Debian Updated 20 November 2026
  • DSA-6614-1

    ruby3.3 - security update

    Known exploited CVE-2025-24294CVE-2025-58767CVE-2025-61594CVE-2026-110264 Debian Updated 20 November 2026
  • ELSA-2026-50728

    ELSA-2026-50728: ruby:3.3 security, bug fix, and enhancement update (IMPORTANT)

    Important CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Oracle Linux Updated 10 August 2026
  • ELSA-2026-50773

    ELSA-2026-50773: ruby4.0 security, bug fix, and enhancement update (IMPORTANT)

    Important CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Oracle Linux Updated 14 August 2026
  • ELSA-2026-50778

    ELSA-2026-50778: ruby security, bug fix, and enhancement update (IMPORTANT)

    Important CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Oracle Linux Updated 14 August 2026
  • ELSA-2026-50827

    ELSA-2026-50827: ruby:4.0 security, bug fix, and enhancement update (IMPORTANT)

    Important CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Oracle Linux Updated 10 August 2026
  • ELSA-2026-50828

    ELSA-2026-50828: ruby:3.3 security, bug fix, and enhancement update (IMPORTANT)

    Important CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Oracle Linux Updated 7 August 2026
  • GHSA-g857-hhfv-j68w

    Buffer Overflow in Zlib::GzipReader ungetc via large input leads to memory corruption

    Moderate CVE-2026-27820 RubyGems Updated 10 September 2026
  • OESA-2026-3533

    ruby security update

    Critical CVE-2025-24294CVE-2026-27820CVE-2026-47240CVE-2026-47241 openEuler Updated 30 August 2026
  • OESA-2026-3534

    ruby security update

    Critical CVE-2025-24294CVE-2026-27820 openEuler Updated 30 August 2026
  • OESA-2026-3535

    ruby security update

    Critical CVE-2025-24294CVE-2026-27820 openEuler Updated 30 August 2026
  • OESA-2026-3536

    ruby security update

    Critical CVE-2025-24294CVE-2026-27820CVE-2026-47240CVE-2026-47241 openEuler Updated 30 August 2026
  • OESA-2026-3537

    ruby security update

    Critical CVE-2025-24294CVE-2026-27820CVE-2026-47240CVE-2026-47241 openEuler Updated 30 August 2026
  • RHSA-2026:50728

    Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Red Hat Updated 13 November 2026
  • RHSA-2026:50773

    Red Hat Security Advisory: ruby4.0 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Red Hat Updated 13 November 2026
  • RHSA-2026:50778

    Red Hat Security Advisory: ruby security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Red Hat Updated 13 November 2026
  • RHSA-2026:50827

    Red Hat Security Advisory: ruby:4.0 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Red Hat Updated 13 November 2026
  • RHSA-2026:50828

    Red Hat Security Advisory: ruby:3.3 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Red Hat Updated 13 November 2026
  • RHSA-2026:7305

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2008-1891CVE-2008-2662CVE-2008-2663CVE-2008-2664 Red Hat Updated 23 November 2026
  • RHSA-2026:7307

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2008-1891CVE-2008-2662CVE-2008-2663CVE-2008-2664 Red Hat Updated 23 November 2026
  • RHSA-2026:8838

    Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update

    CVE-2008-1891CVE-2008-2662CVE-2008-2663CVE-2008-2664 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2026-27820

    zlib: zlib: Memory corruption via buffer overflow in Zlib::GzipReader

    Moderate CVE-2026-27820 Red Hat Updated 7 November 2026
  • RLSA-2026:50728

    Important: ruby:3.3 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Rocky Linux Updated 27 August 2026
  • RLSA-2026:50773

    Important: ruby4.0 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Rocky Linux Updated 27 August 2026
  • RLSA-2026:50778

    Important: ruby security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Rocky Linux Updated 27 August 2026
  • RLSA-2026:50827

    Important: ruby:4.0 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Rocky Linux Updated 27 August 2026
  • RLSA-2026:50828

    Important: ruby:3.3 security, bug fix, and enhancement update

    CVE-2026-27820CVE-2026-42256CVE-2026-42257CVE-2026-47240 Rocky Linux Updated 27 August 2026
  • SUSE-SU-2026:1066-1

    Security update for ruby2.5

    CVE-2024-49761CVE-2025-58767CVE-2026-27820 SUSE Updated 27 March 2026
  • SUSEVEX-CVE-2026-27820

    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…

    Important CVE-2026-27820 SUSEopenSUSE Updated 24 November 2026
  • UBUNTU-CVE-2026-27820

    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…

    CVE-2026-27820 Ubuntu Updated 20 November 2026
  • USN-8556-1

    ruby2.3 vulnerabilities

    CVE-2026-27820CVE-2026-42258 Ubuntu Updated 16 July 2026
  • openSUSE-SU-2026:21878-1

    Security update for ruby3.4

    CVE-2025-58767CVE-2025-61594CVE-2026-27820CVE-2026-41316 openSUSE Updated 25 September 2026

References