A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-36227

CVE-2022-36227: Libarchive Use-After-Free Vulnerability

CVE-2022-36227 is a use-after-free vulnerability in Libarchive before version 3.6.2 caused by unchecked calloc failures leading to NULL pointer dereference. This article covers technical details, affected versions, and mitigations.

Updated: May 14, 2026

CVE-2022-36227 Overview

CVE-2022-36227 affects libarchive versions before 3.6.2. The library fails to check the return value of a calloc call in archive_write.c. When calloc returns NULL under memory pressure, the subsequent dereference produces a NULL pointer dereference [CWE-476]. The flaw is classified by NVD as a network-exploitable issue with high impact on confidentiality, integrity, and availability, though third parties dispute the code-execution claim. The vulnerability affects downstream products bundling libarchive, including Debian Linux, Fedora, and Splunk Universal Forwarder.

Critical Impact

An unchecked calloc failure in libarchive results in a NULL pointer dereference. The discoverer references a theoretical code-execution scenario, while NVD scoring reflects worst-case impact across confidentiality, integrity, and availability.

Affected Products

  • libarchive libarchive versions prior to 3.6.2
  • Debian Linux 10.0
  • Fedora 37
  • Splunk Universal Forwarder (including 9.1.0)

Discovery Timeline

  • 2022-11-22 - CVE-2022-36227 published to NVD
  • 2023-01 - Debian LTS advisory released
  • 2023-09 - Gentoo GLSA 202309-14 published
  • 2024-11 - Debian LTS follow-up advisory released
  • 2025-11-03 - Last updated in NVD database

Technical Details for CVE-2022-36227

Vulnerability Analysis

The issue resides in libarchive/archive_write.c. The function allocates memory via calloc but does not validate the returned pointer before use. When the allocation fails, calloc returns NULL, and the calling code proceeds to dereference that pointer.

On modern operating systems with non-zero page mappings enforced, dereferencing NULL triggers a segmentation fault and terminates the process. This produces a denial-of-service condition in any application linking libarchive and processing attacker-supplied archives.

The discoverer notes a rare scenario where, if privileged code can map the zero page, the NULL dereference could be steered toward arbitrary memory access. NVD reflects this worst-case assumption in its scoring. Third parties dispute the practical exploitability for code execution on hardened platforms.

Root Cause

The root cause is a missing return-value check after calloc invocation, a textbook instance of [CWE-476] NULL Pointer Dereference. The defensive pattern of validating allocator return values before dereference was not applied at this call site in archive_write.c.

Attack Vector

An attacker delivers a crafted archive to an application that uses libarchive for extraction or inspection. By inducing the allocation failure path during archive processing, the attacker triggers the NULL dereference. The attack vector is network-reachable because archives are commonly transmitted over the network and processed automatically by package managers, backup tools, and log forwarders such as Splunk Universal Forwarder.

No verified public proof-of-concept code is available for this issue. Refer to the libarchive GitHub Issue #1754 and the GitHub source code reference for technical details.

Detection Methods for CVE-2022-36227

Indicators of Compromise

  • Unexpected crashes or segmentation faults in processes that link libarchive, particularly during archive read or write operations.
  • Repeated abnormal terminations of bsdtar, package managers, or Splunk Universal Forwarder when handling externally sourced archives.
  • Core dumps referencing archive_write.c or NULL address access within libarchive symbols.

Detection Strategies

  • Inventory all systems and applications that statically or dynamically link libarchive versions below 3.6.2.
  • Use software composition analysis (SCA) tooling to flag vulnerable libarchive builds embedded in third-party software such as Splunk Universal Forwarder.
  • Monitor system logs and crash reporters for repeated faults originating from archive processing code paths.

Monitoring Recommendations

  • Forward kernel and application crash telemetry to a centralized SIEM for correlation across hosts.
  • Alert on archive-handling processes that crash shortly after receiving network-delivered files.
  • Track patch state of libarchive across Linux distributions using vulnerability management tooling.

How to Mitigate CVE-2022-36227

Immediate Actions Required

  • Upgrade libarchive to version 3.6.2 or later on all affected hosts.
  • Apply distribution updates from Debian, Fedora, and Gentoo as referenced in the Debian LTS Advisory January 2023, Fedora Package Announcement, and Gentoo GLSA 202309-14.
  • Update Splunk Universal Forwarder to a release that bundles the fixed libarchive library.
  • Audit internal applications statically linking libarchive and rebuild against the patched version.

Patch Information

The fix is included in libarchive 3.6.2. Distribution backports are available via the Debian LTS Advisory November 2024 and the earlier January 2023 advisory. Refer to the libarchive GitHub Issue #1754 for the upstream resolution.

Workarounds

  • Restrict archive inputs to trusted sources until upgrades are deployed.
  • Run archive-processing services under isolation, such as containers or seccomp profiles, to limit the blast radius of a crash.
  • Enable automatic process supervision so that crashed extraction workers do not disrupt dependent services.
bash
# Verify installed libarchive version on Debian/Ubuntu
dpkg -l | grep libarchive

# Verify installed libarchive version on Fedora/RHEL
rpm -q libarchive

# Upgrade on Debian/Ubuntu
sudo apt-get update && sudo apt-get install --only-upgrade libarchive13

# Upgrade on Fedora
sudo dnf upgrade libarchive

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechLibarchive

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.52%

  • 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-476
  • Technical References
  • GitHub Source Code Reference

  • Debian LTS Advisory January 2023

  • Fedora Package Announcement

  • Gentoo GLSA 2023-14

  • Debian LTS Advisory November 2024
  • Vendor Resources
  • Gentoo Bug Report #882521

  • GitHub Issue #1754
  • Related CVEs
  • CVE-2021-36976: Libarchive Use-After-Free Vulnerability

  • CVE-2026-5745: libarchive NULL Pointer DoS Vulnerability

  • CVE-2026-5121: libarchive RCE Vulnerability

  • CVE-2026-4426: libarchive DOS 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