Skip to content
Noroxi
CVE-2018-25032· NVD / CVE Program· CNA mitre

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

HighCVSS 7.5 · v3.1—Proof of concept Fix available
Published
Mar 25, 2022
Updated
Jul 14, 2026
EPSS
51.7% · 99th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

46

Plan

Add it to your regular patch cycle.

CVSS
30 / 40 · 7.5 / 10
CISA KEV
0 / 30 · Not listed
EPSS
16 / 30 · 51.7%

CISA SSVC decision

Exploitation
proof of concept
Automatable
yes
Technical impact
partial

Vulnrichment: CISA's decision-tree inputs.

Affected systems

VendorProduct
zlibzlib
nokogirinokogiri
pythonpython
microsoftwindows
debiandebian linux
fedoraprojectfedora
applemac os x
applemacos
mariadbmariadb
netappactive iq unified manager
netappe-series santricity os controller
netappmanagement services for element software

and 27 more

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • apple mac os x10.15 and later · before 10.15.7
  • apple mac os x10.15.7
  • apple macos12.0.0 and later · before 12.4
  • apple macos11.0 and later · before 11.6.6
  • azul zulu11.54
  • azul zulu13.46
  • azul zulu15.38
  • azul zulu17.32
  • azul zulu6.45
  • azul zulu7.52
  • azul zulu8.60
  • debian debian linux10.0
  • debian debian linux11.0
  • debian debian linux9.0
  • fedoraproject fedora34
  • fedoraproject fedora35
  • fedoraproject fedora36
  • goto gotoassistbefore 11.9.18
  • mariadb mariadb10.3.0 and later · before 10.3.36
  • mariadb mariadb10.6.0 and later · before 10.6.9

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
AlmaLinux:8mingw32-zlibbefore 1.2.8-10.el81.2.8-10.el8
AlmaLinux:8mingw32-zlib-staticbefore 1.2.8-10.el81.2.8-10.el8
AlmaLinux:8mingw64-zlibbefore 1.2.8-10.el81.2.8-10.el8
AlmaLinux:8mingw64-zlib-staticbefore 1.2.8-10.el81.2.8-10.el8
AlmaLinux:8rsyncbefore 3.1.3-14.el83.1.3-14.el8
AlmaLinux:8rsync-daemonbefore 3.1.3-14.el83.1.3-14.el8
AlmaLinux:8zlibbefore 1.2.11-18.el8_51.2.11-18.el8_5
AlmaLinux:8zlib-develbefore 1.2.11-18.el8_51.2.11-18.el8_5
AlmaLinux:8zlib-staticbefore 1.2.11-18.el8_51.2.11-18.el8_5
AlmaLinux:9mingw32-zlibbefore 1.2.12-2.el91.2.12-2.el9
AlmaLinux:9mingw32-zlib-staticbefore 1.2.12-2.el91.2.12-2.el9
AlmaLinux:9mingw64-zlibbefore 1.2.12-2.el91.2.12-2.el9
AlmaLinux:9mingw64-zlib-staticbefore 1.2.12-2.el91.2.12-2.el9
Alpine:v3.12zlibfrom 1.2.2.2 · before 1.2.12-r01.2.12-r0
Alpine:v3.13mariadbfrom 10.3.0 · before 10.5.17-r010.5.17-r0
Alpine:v3.15mariadbfrom 10.3.0 · before 10.6.9-r010.6.9-r0
Alpine:v3.16zlibfrom 1.2.2.2 · before 1.2.11-r41.2.11-r4
Debian:10zlibbefore 1:1.2.11.dfsg-1+deb10u11:1.2.11.dfsg-1+deb10u1
Debian:11zlibbefore 1:1.2.11.dfsg-2+deb11u11:1.2.11.dfsg-2+deb11u1
Debian:12libz-mingw-w64before 1.2.11+dfsg-51.2.11+dfsg-5
Debian:12zlibbefore 1:1.2.11.dfsg-41:1.2.11.dfsg-4
Debian:9libz-mingw-w64before 1.2.11+dfsg-1+deb9u11.2.11+dfsg-1+deb9u1
Debian:9zlibbefore 1:1.2.8.dfsg-5+deb9u11:1.2.8.dfsg-5+deb9u1
openSUSE:Leap 15.3zlibbefore 1.2.11-150000.3.30.11.2.11-150000.3.30.1

+96

Same product

zlib: all records

Other highest-scoring records for the same primary product.

  • CVE-2022-37434zlib through 1.2.12 has a heap-based buffer over-read or buffer overflow in inflate in inflate.c via a large gzip header extra field.
    45Plan
  • CVE-2002-0059The decompression algorithm in zlib 1.1.3 and earlier, as used in many different utilities and packages, causes inflateEnd to release certai
    42Plan
  • CVE-2016-9843The crc32_big function in crc32.c in zlib 1.2.8 might allow context-dependent attackers to have unspecified impact via vectors involving big
    41Plan
  • CVE-2016-9841inffast.c in zlib 1.2.8 might allow context-dependent attackers to have unspecified impact by leveraging improper pointer arithmetic.
    41Plan
  • CVE-2023-45853MiniZip in zlib through 1.3 has an integer overflow and resultant heap-based buffer overflow in zipOpenNewFileInZip4_64 via a long filename,
    40Plan
  • CVE-2003-0107Buffer overflow in the gzprintf function in zlib 1.1.4, when zlib is compiled without vsnprintf or when long inputs are truncated using vsnp
    38Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
almalinux:mingw32-zlib1.2.8-10.el8 · AlmaLinux:8Package registry (OSV)
almalinux:mingw32-zlib-static1.2.8-10.el8 · AlmaLinux:8Package registry (OSV)
almalinux:mingw64-zlib1.2.8-10.el8 · AlmaLinux:8Package registry (OSV)
almalinux:mingw64-zlib-static1.2.8-10.el8 · AlmaLinux:8Package registry (OSV)
almalinux:rsync3.1.3-14.el8 · AlmaLinux:8Package registry (OSV)
almalinux:rsync-daemon3.1.3-14.el8 · AlmaLinux:8Package registry (OSV)
almalinux:zlib1.2.11-18.el8_5 · AlmaLinux:8Package registry (OSV)
almalinux:zlib-devel1.2.11-18.el8_5 · AlmaLinux:8Package registry (OSV)
almalinux:zlib-static1.2.11-18.el8_5 · AlmaLinux:8Package registry (OSV)
alpine:mariadb10.5.17-r0 · Alpine:v3.13Package registry (OSV)
alpine:zlib1.2.12-r0 · Alpine:v3.12Package registry (OSV)
debian:libz-mingw-w641.2.11+dfsg-5 · Debian:12Package registry (OSV)
debian:zlib1:1.2.11.dfsg-4 · Debian:12Package registry (OSV)
opensuse:freetype22.12.1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:ghostscript10.02.1-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:mariadb10.9.3-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:mupdf1.20.3-bp154.2.3.1 · openSUSE:Leap 15.4Package registry (OSV)
opensuse:perl-Compress-Raw-Zlib2.213-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:python393.9.13-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:rubygem-nokogiri1.13.4-1.1 · openSUSE:TumbleweedPackage registry (OSV)
opensuse:zlib1.2.11-150000.3.30.1 · openSUSE:Leap 15.3Package registry (OSV)
red hat:minizip0:1.2.7-20.el7_9 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:minizip-compat-debuginfo0:1.2.11-31.el9_0.1 · Red Hat:enterprise_linux:9::appstreamPackage registry (OSV)
red hat:minizip-devel0:1.2.7-20.el7_9 · Red Hat:enterprise_linux:7::clientPackage registry (OSV)
red hat:rsync0:3.1.3-7.el8_2.1 · Red Hat:rhel_eus:8.2::baseosPackage registry (OSV)
red hat:rsync-daemon0:3.1.3-7.el8_2.1 · Red Hat:rhel_eus:8.2::baseosPackage registry (OSV)
red hat:rsync-debuginfo0:3.1.3-7.el8_2.1 · Red Hat:rhel_eus:8.2::baseosPackage registry (OSV)
red hat:rsync-debugsource0:3.1.3-7.el8_2.1 · Red Hat:rhel_eus:8.2::baseosPackage registry (OSV)
red hat:zlib0:1.2.11-11.el8_1.1 · Red Hat:rhel_e4s:8.1::baseosPackage registry (OSV)
red hat:zlib-debuginfo0:1.2.11-11.el8_1.1 · Red Hat:rhel_e4s:8.1::baseosPackage registry (OSV)

+10

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×3

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHubstars:12022-09-29
Proof-of-concept repository on GitHubstars:02022-12-14
Proof-of-concept repository on GitHubstars:02023-03-16

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+188 d
  3. TodaySep 30, 2026+1651 d
EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

No nightly-computed relations.

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
None
Integrity impact
None
Availability impact
High

Weakness class (CWE)

CWE-787 · Out-of-bounds Write

CVSS vector

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

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records