CVE-2022-37434
zlib 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
Check your servers for CVE-2022-37434
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-37434 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
zlib 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. NOTE: only applications that call inflateGetHeader are affected. Some common applications bundle the affected zlib source code but may be unable to call inflateGetHeader (e.g., see the nodejs/node reference).
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 19.2%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 30 Jan 2024):
- Exploitation
- poc: a proof of concept is public
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-120 Buffer Copy without Checking Size of Input
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
unknown all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-37434 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-37434RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-37434Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-37434
trivy image --scanners vuln IMAGE | grep CVE-2022-37434
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2022-25e4dbedf9 lists.fedoraproject.org · vendor advisory
- DSA-5218 debian.org · vendor advisory
- FEDORA-2022-15da0cf165 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-b8232d1cca lists.fedoraproject.org · vendor advisory
- FEDORA-2022-3c28ae0cd8 lists.fedoraproject.org · vendor advisory
- FEDORA-2022-0b517a5397 lists.fedoraproject.org · vendor advisory
Exploits and proof of concept
- https://github.com/curl/curl/issues/9271 github.com · exploit
Other references
- https://github.com/ivd38/zlib_overflow github.com
- https://github.com/madler/zlib/commit/eff308af425b67093bab25f80f1ae950166bece1 github.com
- https://github.com/madler/zlib/blob/21767c654d31d2dccdde4330529775c6c5fd5389/zlib.h#L1062-L1063 github.com
- https://github.com/nodejs/node/blob/75b68c6e4db515f76df73af476eccf382bbcb00a/deps/zlib/inflate.c#L762-L764 github.com
- [oss-security] 20220805 zlib buffer overflow openwall.com · mailing list
- [oss-security] 20220808 Re: zlib buffer overflow openwall.com · mailing list
- https://security.netapp.com/advisory/ntap-20220901-0005/ security.netapp.com
- [debian-lts-announce] 20220912 [SECURITY] [DLA 3103-1] zlib security update lists.debian.org · mailing list
- https://support.apple.com/kb/HT213489 support.apple.com
- https://support.apple.com/kb/HT213488 support.apple.com
- https://support.apple.com/kb/HT213494 support.apple.com
- https://support.apple.com/kb/HT213493 support.apple.com
13 more
- https://support.apple.com/kb/HT213491 support.apple.com
- https://support.apple.com/kb/HT213490 support.apple.com
- 20221030 APPLE-SA-2022-10-27-5 Additional information for APPLE-SA-2022-10-24-2 macOS Ventura 13 seclists.org · mailing list
- 20221030 APPLE-SA-2022-10-27-2 Additional information for APPLE-SA-2022-10-24-1 iOS 16.1 and iPadOS 16 seclists.org · mailing list
- 20221030 APPLE-SA-2022-10-27-1 iOS 15.7.1 and iPadOS 15.7.1 seclists.org · mailing list
- 20221030 APPLE-SA-2022-10-27-6 Additional information for APPLE-SA-2022-10-24-3 macOS Monterey 12.6.1 seclists.org · mailing list
- https://security.netapp.com/advisory/ntap-20230427-0007/ security.netapp.com
- https://github.com/madler/zlib/commit/1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d github.com
- https://cert-portal.siemens.com/productcert/html/ssa-561322.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-150063.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-202008.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-470355.html cert-portal.siemens.com
Source: the record CVE-2022-37434 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse