zlib before 1.2.12 allows memory corruption when deflating (i.e., when compressing) if the input has many distant matches.
- BDU:2022-01641
- GHSA-jc36-42cf-vqwj
- ALSA-2022:1642
- ALSA-2022:2201
- ALSA-2022:7813
- ALSA-2022:8420
- DLA-2968-1
- DLA-2993-1
- DSA-5111-1
- openSUSE-SU-2022:10126-1
- openSUSE-SU-2022:1061-1
- openSUSE-SU-2024:11999-1
- openSUSE-SU-2024:12021-1
- openSUSE-SU-2024:12042-1
- openSUSE-SU-2024:12097-1
- openSUSE-SU-2024:12360-1
- openSUSE-SU-2024:13629-1
- openSUSE-SU-2025:14656-1
- RHSA-2022:1591
- RHSA-2022:1642
- Published
- Mar 25, 2022
- Updated
- Jul 14, 2026
- EPSS
- 51.7% · 99th percentile
- CWE
- CWE-787
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
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
| Vendor | Product | CPE |
|---|---|---|
| zlib | zlib | cpe:2.3:a:zlib:zlib |
| nokogiri | nokogiri | cpe:2.3:a:nokogiri:nokogiri |
| python | python | cpe:2.3:a:python:python |
| microsoft | windows | cpe:2.3:o:microsoft:windows |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| apple | mac os x | cpe:2.3:o:apple:mac_os_x |
| apple | macos | cpe:2.3:o:apple:macos |
| mariadb | mariadb | cpe:2.3:a:mariadb:mariadb |
| netapp | active iq unified manager | cpe:2.3:a:netapp:active_iq_unified_manager |
| netapp | e-series santricity os controller | cpe:2.3:a:netapp:e-series_santricity_os_controller |
| netapp | management services for element software | cpe:2.3:a:netapp:management_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.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | mingw32-zlib | before 1.2.8-10.el8 | 1.2.8-10.el8 |
| AlmaLinux:8 | mingw32-zlib-static | before 1.2.8-10.el8 | 1.2.8-10.el8 |
| AlmaLinux:8 | mingw64-zlib | before 1.2.8-10.el8 | 1.2.8-10.el8 |
| AlmaLinux:8 | mingw64-zlib-static | before 1.2.8-10.el8 | 1.2.8-10.el8 |
| AlmaLinux:8 | rsync | before 3.1.3-14.el8 | 3.1.3-14.el8 |
| AlmaLinux:8 | rsync-daemon | before 3.1.3-14.el8 | 3.1.3-14.el8 |
| AlmaLinux:8 | zlib | before 1.2.11-18.el8_5 | 1.2.11-18.el8_5 |
| AlmaLinux:8 | zlib-devel | before 1.2.11-18.el8_5 | 1.2.11-18.el8_5 |
| AlmaLinux:8 | zlib-static | before 1.2.11-18.el8_5 | 1.2.11-18.el8_5 |
| AlmaLinux:9 | mingw32-zlib | before 1.2.12-2.el9 | 1.2.12-2.el9 |
| AlmaLinux:9 | mingw32-zlib-static | before 1.2.12-2.el9 | 1.2.12-2.el9 |
| AlmaLinux:9 | mingw64-zlib | before 1.2.12-2.el9 | 1.2.12-2.el9 |
| AlmaLinux:9 | mingw64-zlib-static | before 1.2.12-2.el9 | 1.2.12-2.el9 |
| Alpine:v3.12 | zlib | from 1.2.2.2 · before 1.2.12-r0 | 1.2.12-r0 |
| Alpine:v3.13 | mariadb | from 10.3.0 · before 10.5.17-r0 | 10.5.17-r0 |
| Alpine:v3.15 | mariadb | from 10.3.0 · before 10.6.9-r0 | 10.6.9-r0 |
| Alpine:v3.16 | zlib | from 1.2.2.2 · before 1.2.11-r4 | 1.2.11-r4 |
| Debian:10 | zlib | before 1:1.2.11.dfsg-1+deb10u1 | 1:1.2.11.dfsg-1+deb10u1 |
| Debian:11 | zlib | before 1:1.2.11.dfsg-2+deb11u1 | 1:1.2.11.dfsg-2+deb11u1 |
| Debian:12 | libz-mingw-w64 | before 1.2.11+dfsg-5 | 1.2.11+dfsg-5 |
| Debian:12 | zlib | before 1:1.2.11.dfsg-4 | 1:1.2.11.dfsg-4 |
| Debian:9 | libz-mingw-w64 | before 1.2.11+dfsg-1+deb9u1 | 1.2.11+dfsg-1+deb9u1 |
| Debian:9 | zlib | before 1:1.2.8.dfsg-5+deb9u1 | 1:1.2.8.dfsg-5+deb9u1 |
| openSUSE:Leap 15.3 | zlib | before 1.2.11-150000.3.30.1 | 1.2.11-150000.3.30.1 |
+96
Same product
zlib: all recordsOther 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 certai42Plan
- 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 big41Plan
- 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 vsnp38Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:mingw32-zlib | 1.2.8-10.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mingw32-zlib-static | 1.2.8-10.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mingw64-zlib | 1.2.8-10.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:mingw64-zlib-static | 1.2.8-10.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:rsync | 3.1.3-14.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:rsync-daemon | 3.1.3-14.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:zlib | 1.2.11-18.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:zlib-devel | 1.2.11-18.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:zlib-static | 1.2.11-18.el8_5 · AlmaLinux:8 | Package registry (OSV) |
| alpine:mariadb | 10.5.17-r0 · Alpine:v3.13 | Package registry (OSV) |
| alpine:zlib | 1.2.12-r0 · Alpine:v3.12 | Package registry (OSV) |
| debian:libz-mingw-w64 | 1.2.11+dfsg-5 · Debian:12 | Package registry (OSV) |
| debian:zlib | 1:1.2.11.dfsg-4 · Debian:12 | Package registry (OSV) |
| opensuse:freetype2 | 2.12.1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:ghostscript | 10.02.1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:mariadb | 10.9.3-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:mupdf | 1.20.3-bp154.2.3.1 · openSUSE:Leap 15.4 | Package registry (OSV) |
| opensuse:perl-Compress-Raw-Zlib | 2.213-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python39 | 3.9.13-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:rubygem-nokogiri | 1.13.4-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:zlib | 1.2.11-150000.3.30.1 · openSUSE:Leap 15.3 | Package registry (OSV) |
| red hat:minizip | 0:1.2.7-20.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:minizip-compat-debuginfo | 0:1.2.11-31.el9_0.1 · Red Hat:enterprise_linux:9::appstream | Package registry (OSV) |
| red hat:minizip-devel | 0:1.2.7-20.el7_9 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:rsync | 0:3.1.3-7.el8_2.1 · Red Hat:rhel_eus:8.2::baseos | Package registry (OSV) |
| red hat:rsync-daemon | 0:3.1.3-7.el8_2.1 · Red Hat:rhel_eus:8.2::baseos | Package registry (OSV) |
| red hat:rsync-debuginfo | 0:3.1.3-7.el8_2.1 · Red Hat:rhel_eus:8.2::baseos | Package registry (OSV) |
| red hat:rsync-debugsource | 0:3.1.3-7.el8_2.1 · Red Hat:rhel_eus:8.2::baseos | Package registry (OSV) |
| red hat:zlib | 0:1.2.11-11.el8_1.1 · Red Hat:rhel_e4s:8.1::baseos | Package registry (OSV) |
| red hat:zlib-debuginfo | 0:1.2.11-11.el8_1.1 · Red Hat:rhel_e4s:8.1::baseos | Package 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.
| Source | Kind | Date |
|---|---|---|
| Proof-of-concept repository on GitHub | stars:1 | 2022-09-29 |
| Proof-of-concept repository on GitHub | stars:0 | 2022-12-14 |
| Proof-of-concept repository on GitHub | stars:0 | 2023-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.
- Published
- First PoC+188 d
- TodaySep 30, 2026+1651 d
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.
Credits
All researchersFinders, 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 WriteCVSS 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 helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- seclists.org/fulldisclosure/2022/May/33
- seclists.org/fulldisclosure/2022/May/35
- seclists.org/fulldisclosure/2022/May/38
- www.openwall.com/lists/oss-security/2022/03/25/2
- cert-portal.siemens.com/productcert/pdf/ssa-333517.pdf
- github.com/madler/zlib/commit/5c44459c3b28a9bd3283aaceab7c615f8020c531
- github.com/madler/zlib/compare/v1.2.11...v1.2.12
- github.com/madler/zlib/issues/605
- lists.debian.org/debian-lts-announce/2022/04/msg00000.html
- lists.debian.org/debian-lts-announce/2022/05/msg00008.html
- lists.debian.org/debian-lts-announce/2022/09/msg00023.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DCZFIJBJTZ7CL5QXBFKTQ22Q26VINRUF/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DF62MVMH3QUGMBDCB3DY2ERQ6EBHTADB/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZZPTWRYQULAOL3AW7RZJNVZ2UONXCV4/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NS2D2GFPFGOJUL4WQ3DUAY7HF4VWQ77F/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VOKNP2L734AEL47NRYGVZIKEFOUBQY5Y/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XOKFMSNQ5D5WGMALBNBXU3GE442V74WU/
- security.gentoo.org/glsa/202210-42
- security.netapp.com/advisory/ntap-20220526-0009/
- security.netapp.com/advisory/ntap-20220729-0004/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.