← Vulnerability feed

Vulnerability record · CVE-2018-25032 · published 25 March 2022

CVE-2018-25032: zlib deflate out-of-bounds write on distant matches

Nokogiri · Nokogiri

zlib before 1.2.12 allows memory corruption when deflating (compressing) input that contains many distant matches, an out-of-bounds write (CWE-787). Because zlib is embedded in many products and language runtimes, the flaw affects a wide range of software that compresses attacker-influenced data.

7.5 CVSS 3.1 High EPSS 52% · top 1.1% CWE-787 · Out-of-bounds write
7.5CVSS 3.1 base score, v2 5.0
52%EPSS exploitation probability, 30 days
NoNot in CISA KEV
27Affected product versions listed by NVD
64References, 4 tagged exploit
14 Jul 2026Last modified by NVD

Description

zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: medium.

high priorityHigh CVSS (7.5) with network reachability and a very high EPSS score, though no KEV listing or confirmed in-the-wild exploitation.

What it is

zlib before 1.2.12 allows memory corruption when deflating (compressing) input that contains many distant matches, an out-of-bounds write (CWE-787). Because zlib is embedded in many products and language runtimes, the flaw affects a wide range of software that compresses attacker-influenced data.

Impact

An attacker can corrupt memory in the compressing process, which can crash it or potentially lead to code execution depending on the surrounding application and memory layout.

Attack surface

Reached remotely over the network with no authentication and no user interaction (CVSS:3.1/AV:N/AC:L/PR:N/UI:N), wherever an application compresses attacker-supplied data with a vulnerable zlib.

Exploitation

Not listed in CISA KEV, but EPSS is high (0.51733, 98.9th percentile) and one reference is tagged Exploit, indicating public exploit material exists.

What to do

  • Upgrade zlib to 1.2.12 or later, or apply the vendor patch for each affected product.
  • Update bundled copies of zlib in language runtimes and libraries (for example Python and Nokogiri) and in firmware/appliances listed by vendors.
  • Track vendor advisories (Debian, Fedora, Apple, NetApp, Siemens, MariaDB) and apply their fixed packages.
  • Where patching is delayed, avoid compressing untrusted input with vulnerable zlib builds or isolate such processing.
  • Inventory software that statically links zlib, since it will not be fixed by an OS package update alone.

Detection

  • Monitor for crashes or abnormal termination in processes that perform zlib compression on untrusted data.
  • Check installed zlib versions and bundled copies across hosts and containers against 1.2.12.
  • Watch for memory-corruption indicators (ASAN/valgrind reports, segfaults) in services handling compressed input.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

27 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://seclists.org/fulldisclosure/2022/May/33 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/May/35 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/May/38 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2022/03/25/2 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2022/03/26/1 ExploitMailing ListThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-333517.pdf Third Party Advisory
https://github.com/madler/zlib/commit/5c44459c3b28a9bd3283aaceab7c615f8020c531 PatchThird Party Advisory
https://github.com/madler/zlib/compare/v1.2.11...v1.2.12 PatchThird Party Advisory
https://github.com/madler/zlib/issues/605 Issue TrackingPatchThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/04/msg00000.html Mailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/05/msg00008.html Mailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/09/msg00023.html Mailing ListThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCZFIJBJTZ7CL5QXBFKTQ22 Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DF62MVMH3QUGMBDCB3DY2ER Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZZPTWRYQULAOL3AW7RZJNV Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NS2D2GFPFGOJUL4WQ3DUAY7 Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VOKNP2L734AEL47NRYGVZIK Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XOKFMSNQ5D5WGMALBNBXU3G Third Party Advisory
https://security.gentoo.org/glsa/202210-42 Third Party Advisory
https://security.netapp.com/advisory/ntap-20220526-0009/ Third Party Advisory
https://security.netapp.com/advisory/ntap-20220729-0004/ Third Party Advisory
https://support.apple.com/kb/HT213255 Third Party Advisory
https://support.apple.com/kb/HT213256 Third Party Advisory
https://support.apple.com/kb/HT213257 Third Party Advisory
https://www.debian.org/security/2022/dsa-5111 PatchThird Party Advisory
https://www.openwall.com/lists/oss-security/2022/03/24/1 Mailing ListThird Party Advisory
https://www.openwall.com/lists/oss-security/2022/03/28/1 ExploitMailing ListThird Party Advisory
https://www.openwall.com/lists/oss-security/2022/03/28/3 Mailing ListThird Party Advisory
https://www.oracle.com/security-alerts/cpujul2022.html PatchThird Party Advisory
http://seclists.org/fulldisclosure/2022/May/33 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/May/35 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/May/38 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2022/03/25/2 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2022/03/26/1 ExploitMailing ListThird Party Advisory
https://cert-portal.siemens.com/productcert/pdf/ssa-333517.pdf Third Party Advisory
https://github.com/madler/zlib/commit/5c44459c3b28a9bd3283aaceab7c615f8020c531 PatchThird Party Advisory
https://github.com/madler/zlib/compare/v1.2.11...v1.2.12 PatchThird Party Advisory
https://github.com/madler/zlib/issues/605 Issue TrackingPatchThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/04/msg00000.html Mailing ListThird Party Advisory
https://lists.debian.org/debian-lts-announce/2022/05/msg00008.html Mailing ListThird Party Advisory

Track CVE-2018-25032 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-43300Apple iOS, iPadOS and macOS out-of-bounds write via malicious imageAn out-of-bounds write in Apple iOS, iPadOS and macOS is triggered when processing a malicious image file, causing memory corruption. Apple states th…KEVEPSS 22%analysed10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2025-24085Apple iOS, iPadOS, macOS, tvOS, visionOS, watchOS Use-After-Free Privilege EscalationA use-after-free flaw in Apple's operating systems was fixed through improved memory management in iOS 18.3, iPadOS 18.3 and 17.7.6, macOS Sequoia 15…KEVEPSS 18%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-65400Apple macOS Screen Sharing authentication bypassAn improper authentication flaw in Apple macOS Screen Sharing allows a network attacker to authenticate without valid credentials. Apple fixed it via…KEVEPSS 1.2%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed

Source: NIST National Vulnerability Database (record CVE-2018-25032), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.