Vulnerability · Published Aug 5, 2022 · Assigned by mitre
CVE-2022-37434
Critical 9.8
In plain English
A critical-severity buffer overflow in the rsync package (AlmaLinux). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 19.2% (higher than 97% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | rsync | 3.1.3-19.el8 | ALSA-2022:7793 |
| AlmaLinux:9 | rsync | 3.2.3-18.el9 | ALSA-2022:8291 |
| AlmaLinux:8 | rsync-daemon | 3.1.3-19.el8 | ALSA-2022:7793 |
| AlmaLinux:9 | rsync-daemon | 3.2.3-18.el9 | ALSA-2022:8291 |
| AlmaLinux:8 | zlib | 1.2.11-19.el8_6 | ALSA-2022:7106 |
| AlmaLinux:9 | zlib | 1.2.11-32.el9_0 | ALSA-2022:7314 |
| AlmaLinux:8 | zlib-devel | 1.2.11-19.el8_6 | ALSA-2022:7106 |
| AlmaLinux:9 | zlib-devel | 1.2.11-32.el9_0 | ALSA-2022:7314 |
| AlmaLinux:8 | zlib-static | 1.2.11-19.el8_6 | ALSA-2022:7106 |
| AlmaLinux:9 | zlib-static | 1.2.11-32.el9_0 | ALSA-2022:7314 |
| Alpine:v3.20 | zlib | 1.2.12-r2 | ALPINE-CVE-2022-37434 |
| Alpine:v3.21 | zlib | 1.2.12-r2 | ALPINE-CVE-2022-37434 |
| Alpine:v3.22 | zlib | 1.2.12-r2 | ALPINE-CVE-2022-37434 |
| Alpine:v3.23 | zlib | 1.2.12-r2 | ALPINE-CVE-2022-37434 |
| Alpine:v3.24 | zlib | 1.2.12-r2 | ALPINE-CVE-2022-37434 |
| Alpine:v3.20 | zlib-ng | 2.0.6-r0 | ALPINE-CVE-2022-37434 |
| Alpine:v3.21 | zlib-ng | 2.0.6-r0 | ALPINE-CVE-2022-37434 |
| Alpine:v3.22 | zlib-ng | 2.0.6-r0 | ALPINE-CVE-2022-37434 |
| Alpine:v3.23 | zlib-ng | 2.0.6-r0 | ALPINE-CVE-2022-37434 |
| Alpine:v3.24 | zlib-ng | 2.0.6-r0 | ALPINE-CVE-2022-37434 |
| Debian:12 | libz-mingw-w64 | 1.2.12+dfsg-2 | DEBIAN-CVE-2022-37434 |
| Debian:13 | libz-mingw-w64 | 1.2.12+dfsg-2 | DEBIAN-CVE-2022-37434 |
| Debian:14 | libz-mingw-w64 | 1.2.12+dfsg-2 | DEBIAN-CVE-2022-37434 |
| Debian:12 | zlib | 1:1.2.11.dfsg-4.1 | DEBIAN-CVE-2022-37434 |
| Debian:13 | zlib | 1:1.2.11.dfsg-4.1 | DEBIAN-CVE-2022-37434 |
| Debian:14 | zlib | 1:1.2.11.dfsg-4.1 | DEBIAN-CVE-2022-37434 |
| Rocky Linux:8 | rsync | 0:3.1.3-19.el8 | RLSA-2022:7793 |
| Rocky Linux:9 | rsync | 0:3.2.3-18.el9 | RLSA-2022:8291 |
| Rocky Linux:8 | zlib | 0:1.2.11-19.el8_6 | RLSA-2022:7106 |
| Rocky Linux:9 | zlib | 0:1.2.11-32.el9_0 | RLSA-2022:7314 |
| Ubuntu:22.04:LTS | klibc | 2.0.10-4ubuntu0.1 | UBUNTU-CVE-2022-37434 |
| Ubuntu:22.04:LTS | klibc | 2.0.10-4ubuntu0.1 | USN-6736-1 |
| Ubuntu:24.04:LTS | klibc | 2.0.13-4ubuntu0.1 | UBUNTU-CVE-2022-37434 |
| Ubuntu:24.04:LTS | klibc | 2.0.13-4ubuntu0.1 | USN-6736-2 |
| Ubuntu:22.04:LTS | zlib | 1:1.2.11.dfsg-2ubuntu9.2 | UBUNTU-CVE-2022-37434 |
| Ubuntu:22.04:LTS | zlib | 1:1.2.11.dfsg-2ubuntu9.2 | USN-5570-2 |
Affected products (as reported)
Weakness: CWE-120 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/ivd38/zlib_overflow
- https://github.com/madler/zlib/commit/eff308af425b67093bab25f80f1ae950166bece1
- https://github.com/madler/zlib/blob/21767c654d31d2dccdde4330529775c6c5fd5389/zlib.h#L1062-L1063
- https://github.com/nodejs/node/blob/75b68c6e4db515f76df73af476eccf382bbcb00a/deps/zlib/inflate.c#L762-L764
- [oss-security] 20220805 zlib buffer overflow mailing-list
- https://github.com/curl/curl/issues/9271
- [oss-security] 20220808 Re: zlib buffer overflow mailing-list
- FEDORA-2022-25e4dbedf9 vendor-advisory
- DSA-5218 vendor-advisory
- FEDORA-2022-15da0cf165 vendor-advisory
- https://security.netapp.com/advisory/ntap-20220901-0005/
- FEDORA-2022-b8232d1cca vendor-advisory
- [debian-lts-announce] 20220912 [SECURITY] [DLA 3103-1] zlib security update mailing-list
- FEDORA-2022-3c28ae0cd8 vendor-advisory
- FEDORA-2022-0b517a5397 vendor-advisory
- https://support.apple.com/kb/HT213489
- https://support.apple.com/kb/HT213488
- https://support.apple.com/kb/HT213494
- https://support.apple.com/kb/HT213493
- https://support.apple.com/kb/HT213491
- https://support.apple.com/kb/HT213490
- 20221030 APPLE-SA-2022-10-27-5 Additional information for APPLE-SA-2022-10-24-2 macOS Ventura 13 mailing-list
- 20221030 APPLE-SA-2022-10-27-2 Additional information for APPLE-SA-2022-10-24-1 iOS 16.1 and iPadOS 16 mailing-list
- 20221030 APPLE-SA-2022-10-27-1 iOS 15.7.1 and iPadOS 15.7.1 mailing-list
- 20221030 APPLE-SA-2022-10-27-6 Additional information for APPLE-SA-2022-10-24-3 macOS Monterey 12.6.1 mailing-list
- https://security.netapp.com/advisory/ntap-20230427-0007/
- https://github.com/madler/zlib/commit/1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d
- https://cert-portal.siemens.com/productcert/html/ssa-561322.html
- https://cert-portal.siemens.com/productcert/html/ssa-150063.html
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-202008.html
- https://cert-portal.siemens.com/productcert/html/ssa-470355.html