Heap-based buffer overflow in Zlib - CVE-2022-42800

 

Heap-based buffer overflow in Zlib - CVE-2022-42800

Published: October 27, 2022 / Updated: October 23, 2023


Vulnerability identifier: #VU68812
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-42800
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error when processing gzip files. A remote attacker can pass a specially crafted file to the affected application, trigger heap-based buffer overflow and execute arbitrary code on the target system.



Affected software

Zlib
macOS
Apple iOS
iPadOS
watchOS

How to mitigate CVE-2022-42800

Install update from vendor's website.

Zlib - update to 1.2.13
macOS - addressed in versions 11.7.1 20G918, 12.6.1 21G217, 13.0 22A380
Apple iOS - addressed in versions 15.7.1 19H117, 16.1 20B82
iPadOS - addressed in versions 15.7.1 19H117, 16.1 20B82
watchOS - update to 9.1 20S75

External References

Related Security Bulletins