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-2020-36193

CVE-2020-36193: PHP Archive Tar Path Traversal Flaw

CVE-2020-36193 is a path traversal vulnerability in PHP Archive Tar that allows attackers to write files outside intended directories via symbolic links. This article covers technical details, affected versions, and mitigation.

Updated: May 16, 2026

CVE-2020-36193 Overview

CVE-2020-36193 is a directory traversal vulnerability in the PEAR Archive_Tar PHP library through version 1.4.11. The flaw resides in Tar.php, which fails to adequately validate symbolic links during archive extraction. Attackers can craft a malicious tar archive containing symlinks that point outside the intended extraction path, enabling write operations to arbitrary file system locations. The issue is closely related to CVE-2020-28948 and affects downstream consumers including Drupal core, Debian, Fedora, and Gentoo. CISA has added this vulnerability to its Known Exploited Vulnerabilities (KEV) catalog, confirming active exploitation in the wild.

Critical Impact

A network-reachable attacker can write attacker-controlled content to arbitrary paths on the host, leading to remote code execution on web applications such as Drupal that process untrusted archives.

Affected Products

  • PEAR Archive_Tar through 1.4.11
  • Drupal core (multiple supported branches, per SA-CORE-2021-001)
  • Debian Linux 9 and 10, Fedora 32–35, and Gentoo distributions packaging Archive_Tar

Discovery Timeline

  • 2021-01-18 - CVE-2020-36193 published to NVD
  • 2025-11-07 - Last updated in NVD database

Technical Details for CVE-2020-36193

Vulnerability Analysis

The vulnerability is a path traversal via symbolic links [CWE-22, CWE-59] in the archive extraction routine of Archive_Tar. When Archive_Tar processes a tar entry with typeflag value 2 (symbolic link), it writes the symlink to disk without verifying that the link target resolves within the destination directory. A subsequent file entry that writes through that symlink path can place attacker-controlled bytes anywhere the PHP process has write permission.

In applications such as Drupal, where Archive_Tar extracts user-supplied archives during module or update operations, this primitive escalates to remote code execution. An attacker uploads a crafted archive, the extractor follows the planted symlink, and PHP files land in webroot-reachable locations.

Root Cause

The root cause is missing validation of the symlink target path. Prior to the fix, Tar.php did not compare the canonicalized parent directory of the link target against the canonicalized extraction root. Because realpath() was never invoked on the symlink target, traversal sequences and absolute paths in the link field bypassed all containment.

Attack Vector

Exploitation requires an attacker to deliver a malicious tar archive to a vulnerable extraction routine. No authentication is needed when the target application exposes archive intake to anonymous users. The attack chain is:

  1. Build a tar archive containing a symlink entry whose link target points outside the extraction directory (for example, ../../../var/www/html/).
  2. Append a regular file entry whose filename routes through the planted symlink.
  3. Submit the archive to a vulnerable consumer such as Drupal's module installer.
  4. Trigger the extracted payload, typically by requesting the dropped PHP file.

The upstream commit added a realpath() containment check that aborts extraction when a symlink target resolves outside the destination path:

php
} elseif ($v_header['typeflag'] == "2") {
    if (strpos(realpath(dirname($v_header['link'])), realpath($p_path)) !== 0) {
        $this->_error(
             'Out-of-path file extraction {'
             . $v_header['filename'] . ' --> ' .
             $v_header['link'] . '}'
        );
        return false;
    }
    if (!$p_symlinks) {
        $this->_warning('Symbolic links are not allowed. '
            . 'Unable to extract {'

Source: pear/Archive_Tar commit cde46058

Detection Methods for CVE-2020-36193

Indicators of Compromise

  • Tar or .tar.gz archives containing symlink entries whose link field includes ../ sequences or absolute paths outside the extraction directory.
  • Newly created PHP files in web-accessible directories such as sites/default/files/, modules/, or themes/ on Drupal hosts following an archive upload.
  • Unexpected child processes spawned by php-fpm or the webserver user shortly after an archive operation.

Detection Strategies

  • Inventory installed Archive_Tar versions across PHP application stacks and flag any release at or below 1.4.11.
  • Inspect web server access logs for POST requests to Drupal update, module install, or media import endpoints followed by GET requests to newly created .php resources.
  • Hook archive extraction calls in development and staging environments to log each typeflag == 2 entry and the resolved target path for review.

Monitoring Recommendations

  • Alert on filesystem writes from the PHP process to paths outside the application's designated upload or temp directory.
  • Monitor package management telemetry for Debian, Fedora, and Gentoo advisories that update the php-pear or Archive_Tar packages.
  • Track outbound connections initiated by the webserver user immediately after archive uploads to identify post-exploitation callbacks.

How to Mitigate CVE-2020-36193

Immediate Actions Required

  • Upgrade Archive_Tar to 1.4.12 or later on every host that installs the PEAR library directly or as a Composer dependency.
  • Apply Drupal core updates per SA-CORE-2021-001 on all Drupal 7, 8.9, and 9.x installations.
  • Apply distribution patches: Debian DSA-4894, the Debian LTS advisory, Fedora updates for Fedora 32–35, and Gentoo GLSA 202101-23.
  • Audit any custom PHP code that calls Archive_Tar::extract() on user-supplied archives and confirm the patched version is loaded at runtime.

Patch Information

The upstream fix is commit cde46058 in the pear/Archive_Tar repository, released as Archive_Tar 1.4.12. The patch rejects any symlink entry whose target's parent directory does not resolve within the extraction path. Drupal shipped the patched library in the releases listed in SA-CORE-2021-001. CISA's listing in the KEV catalog makes patching mandatory for U.S. federal agencies under BOD 22-01.

Workarounds

  • Disable or restrict archive upload features in Drupal until the patched version is deployed.
  • Run the PHP-FPM worker under a dedicated low-privilege user with write access limited to the application's data directory.
  • Place extraction operations inside a chroot or container so symlink traversal cannot escape into sensitive paths.
bash
# Verify the patched Archive_Tar version is installed via PEAR
pear list | grep -i Archive_Tar

# Or via Composer for projects using pear/archive_tar
composer show pear/archive_tar | grep versions

# Update to a fixed release
pear upgrade Archive_Tar
composer require pear/archive_tar:^1.4.14

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechPhp Archive Tar

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability71.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-22

  • CWE-59
  • Technical References
  • Debian LTS Announcement January 2021

  • Debian LTS Announcement April 2021

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 2021-23

  • Debian Security Advisory DSA-4894

  • Drupal Security Advisory SA-CORE-2021-001

  • CISA Known Exploited Vulnerability CVE-2020-36193
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2020-28949: PHP Archive Tar Path Traversal Flaw

  • CVE-2021-32610: PHP Archive Tar Path Traversal Vulnerability

  • CVE-2020-28948: PHP Archive_Tar Unserialization 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