Skip to content
Threat Feed
medium advisory

Remote Code Execution Vulnerability in zlib

A memory corruption vulnerability in the zlib library allows a remote, unauthenticated attacker to execute arbitrary code or trigger a denial of service.

CVE search metadata

CVE search record: CVE-2022-37434. Severity: critical. CVSS: 9.8. EPSS: 17.85%. KEV: no. Product: zlib. Brief: Remote Code Execution Vulnerability in zlib. Brief link: https://feed.craftedsignal.io/briefs/2026-08-zlib-vulnerability/

The zlib compression library is affected by a heap-based buffer overflow vulnerability, identified as CVE-2022-37434. This vulnerability resides in the way the library handles specifically crafted inputs during decompression operations. A remote, unauthenticated attacker can exploit this flaw by providing malicious compressed data to an application that utilizes a vulnerable version of zlib. Successful exploitation leads to arbitrary code execution within the context of the application or a denial of service (DoS) through application crashing. Given that zlib is a foundational component used across a wide range of software, operating systems, and network devices, the attack surface is broad, requiring security teams to verify their dependency trees for vulnerable library versions.

Impact

Successful exploitation allows for unauthorized code execution with the privileges of the targeted application, potentially leading to full system compromise or service disruption. The impact is significant due to the library's ubiquity in both enterprise and embedded software ecosystems.

Recommendation

Identify and update all software dependencies that incorporate the zlib library to a patched version. Monitor build pipelines and vulnerability management scanners for CVE-2022-37434 to locate vulnerable library instances.


Immediate actions

Run dependency audits to identify software using zlib < 1.2.12

Security Engineering 72h

Mitigations

Patch or update libraries in all CI/CD pipelines

medium_term IT Operations

CVE-2022-37434