The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-37434

CVE-2022-37434: Zlib Buffer Overflow Vulnerability

CVE-2022-37434 is a heap-based buffer overflow in Zlib through 1.2.12 that affects applications calling inflateGetHeader. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 25, 2026

CVE-2022-37434 Overview

CVE-2022-37434 is a heap-based buffer over-read or buffer overflow vulnerability in the inflate() function within zlib through version 1.2.12. The vulnerability is triggered via a large gzip header extra field and specifically affects applications that call the inflateGetHeader() function. This memory corruption flaw can lead to remote code execution, information disclosure, or denial of service when processing maliciously crafted compressed data.

It is important to note that only applications utilizing the inflateGetHeader() API are vulnerable. Some common applications bundle the affected zlib source code but may be unable to call inflateGetHeader(), such as Node.js implementations where the vulnerable code path is not exposed.

Critical Impact

This vulnerability allows remote attackers to potentially achieve arbitrary code execution, information disclosure, or crash applications by sending specially crafted gzip data with oversized header extra fields to vulnerable systems using zlib's inflate decompression.

Affected Products

  • zlib through version 1.2.12
  • Apple macOS, iOS, iPadOS, and watchOS
  • Fedora 35, 36, and 37
  • Debian Linux 10.0
  • NetApp Active IQ Unified Manager, HCI, StorageGRID, and related products
  • NetApp H-Series storage systems (H300S, H500S, H700S)
  • Stormshield Network Security

Discovery Timeline

  • 2022-08-05 - CVE-2022-37434 published to NVD
  • 2025-05-30 - Last updated in NVD database

Technical Details for CVE-2022-37434

Vulnerability Analysis

The vulnerability exists in the inflate.c file within zlib's decompression functionality. When processing gzip-compressed data, the inflate() function handles header extra fields through the inflateGetHeader() API. The flaw occurs due to improper bounds checking when copying extra field data from the compressed stream to a user-provided buffer.

The vulnerable code calculates an offset (len) for the destination buffer before verifying that the state->head pointer is valid and that the extra buffer exists. This ordering issue can result in a NULL pointer dereference when state->head is NULL, or more critically, can lead to a heap-based buffer over-read or overflow when the calculated length exceeds the allocated buffer size (extra_max).

Applications that decompress untrusted gzip streams and request header information through inflateGetHeader() are susceptible to exploitation. An attacker can craft a malicious gzip file with an oversized extra field that triggers the memory corruption during decompression.

Root Cause

The root cause is an improper ordering of operations in the extra field processing logic. The original code calculated the buffer offset (len = state->head->extra_len - state->length) before checking if state->head was NULL and before validating that len was within the bounds of extra_max. This allows:

  1. NULL pointer dereference if state->head is not set
  2. Buffer overflow if the calculated length exceeds the allocated buffer size

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious gzip file with an oversized extra field in the header
  2. Delivering the crafted file to a vulnerable application via network protocols (HTTP, FTP, email attachments, etc.)
  3. When the application decompresses the data and calls inflateGetHeader(), the memory corruption occurs
  4. Depending on heap layout and exploitation techniques, this can lead to arbitrary code execution
c
                 copy = state->length;
                 if (copy > have) copy = have;
                 if (copy) {
+                    len = state->head->extra_len - state->length;
                     if (state->head != Z_NULL &&
-                        state->head->extra != Z_NULL) {
-                        len = state->head->extra_len - state->length;
+                        state->head->extra != Z_NULL &&
+                        len < state->head->extra_max) {
                         zmemcpy(state->head->extra + len, next,
                                 len + copy > state->head->extra_max ?
                                 state->head->extra_max - len : copy);

Source: GitHub zlib Commit

Detection Methods for CVE-2022-37434

Indicators of Compromise

  • Unexpected application crashes during gzip decompression operations
  • Memory access violations or segmentation faults in processes using zlib
  • Abnormal gzip files with unusually large extra field values in headers
  • Exploitation attempts may leave evidence of heap spray patterns in memory dumps

Detection Strategies

  • Monitor applications using zlib for unexpected crashes or memory corruption signals
  • Implement deep packet inspection to identify gzip streams with anomalous header extra field sizes
  • Deploy runtime application self-protection (RASP) solutions to detect buffer overflow attempts
  • Use memory sanitizers (AddressSanitizer, Valgrind) during testing to identify vulnerable code paths

Monitoring Recommendations

  • Enable crash reporting and analyze core dumps for zlib-related memory corruption
  • Monitor network traffic for compressed data streams targeting services known to use inflateGetHeader()
  • Implement centralized logging for decompression-related errors across applications
  • Track zlib library versions across the environment using software composition analysis tools

How to Mitigate CVE-2022-37434

Immediate Actions Required

  • Update zlib to version 1.2.13 or later which contains the security fix
  • Identify all applications and systems using bundled or system zlib libraries
  • Apply vendor-specific patches for affected operating systems (Apple, Fedora, Debian, NetApp)
  • Prioritize patching internet-facing services that process compressed data from untrusted sources

Patch Information

The vulnerability has been fixed in zlib through commits that reorder the bounds checking logic. The fix ensures that state->head is validated before dereferencing and that the calculated offset is verified against extra_max before the memory copy operation. Patches are available from:

  • Official zlib security commit
  • Additional fix for NULL state->head
  • Debian Security Advisory DSA-5218
  • Apple security updates HT213488 through HT213494

Workarounds

  • If patching is not immediately possible, avoid using inflateGetHeader() in applications processing untrusted data
  • Implement input validation to reject gzip files with extra field sizes exceeding reasonable thresholds
  • Consider sandboxing or isolating processes that decompress untrusted gzip data
  • Deploy web application firewalls (WAF) configured to inspect and filter compressed content
bash
# Check installed zlib version on Linux systems
dpkg -l | grep zlib  # Debian/Ubuntu
rpm -qa | grep zlib  # RHEL/CentOS/Fedora

# Update zlib on Debian/Ubuntu
sudo apt update && sudo apt upgrade zlib1g

# Update zlib on RHEL/CentOS
sudo yum update zlib

# Verify the fix is applied by checking library version
ldconfig -p | grep libz

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechZlib

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability92.54%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-787

  • CWE-120
  • Technical References
  • Full Disclosure Post #37

  • Full Disclosure Post #38

  • Full Disclosure Post #41

  • Full Disclosure Post #42

  • OpenWall OSS Security Update

  • GitHub curl Issue #9271

  • GitHub zlib Overflow PoC

  • GitHub zlib Source Line Reference

  • GitHub zlib Commit #1

  • GitHub Node.js zlib Source Line Reference

  • Debian LTS Announcement #12

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory #0005

  • NetApp Security Advisory #0007

  • Apple Security Update HT213488

  • Apple Security Update HT213489

  • Apple Security Update HT213490

  • Apple Security Update HT213491

  • Apple Security Update HT213493

  • Apple Security Update HT213494
  • Vendor Resources
  • OpenWall OSS Security Notification

  • GitHub zlib Commit #2
  • Related CVEs
  • CVE-2026-27820: zlib Ruby Buffer Overflow Vulnerability

  • CVE-2026-24800: Furnace Zlib Buffer Overflow Vulnerability

  • CVE-2026-22184: zlib Buffer Overflow Vulnerability

  • CVE-2023-45853: Zlib MiniZip Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English