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
    • 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-28949

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

CVE-2020-28949 is a path traversal vulnerability in PHP Archive Tar that allows stream-wrapper attacks to overwrite files. This article covers the technical details, affected versions, impact, and mitigation.

Published: March 11, 2026

CVE-2020-28949 Overview

CVE-2020-28949 is a path traversal and arbitrary file write vulnerability in PHP's PEAR Archive_Tar library through version 1.4.10. The library implements incomplete filename sanitization that only blocks phar:// stream wrapper attacks, leaving the application vulnerable to other PHP stream wrapper exploits such as file:// which can be leveraged to overwrite arbitrary files on the target system.

Critical Impact

This vulnerability is actively exploited in the wild and is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. Attackers can craft malicious TAR archives that overwrite critical system files when extracted, potentially leading to remote code execution on vulnerable systems including Drupal installations.

Affected Products

  • PHP Archive_Tar through version 1.4.10
  • Drupal (multiple versions)
  • Debian Linux 9.0 and 10.0
  • Fedora 32, 33, 34, and 35

Discovery Timeline

  • 2020-11-19 - CVE-2020-28949 published to NVD
  • 2025-11-07 - Last updated in NVD database

Technical Details for CVE-2020-28949

Vulnerability Analysis

The vulnerability exists in the Archive_Tar library's file extraction routine. When the library was originally patched to prevent phar deserialization attacks (CVE-2020-28948), the developers implemented filename sanitization that specifically targeted the phar:// stream wrapper. However, this fix was incomplete as PHP supports multiple stream wrappers that can be abused for malicious purposes.

The flaw allows an attacker to create a specially crafted TAR archive containing filenames that use alternative PHP stream wrappers such as file://, php://, or data://. When the archive is extracted by a vulnerable application, these stream wrapper paths are processed, enabling arbitrary file writes to locations outside the intended extraction directory.

This vulnerability is particularly dangerous in web application contexts, especially Drupal installations, where uploaded TAR archives may be processed automatically. An attacker could overwrite configuration files, inject malicious code into PHP files, or manipulate other critical system files.

Root Cause

The root cause is an incomplete input validation pattern in the Archive_Tar library's filename handling code. The original fix for phar attacks implemented a blocklist approach, specifically filtering out phar:// prefixes while failing to account for other dangerous PHP stream wrappers. This oversight in the sanitization logic means that alternative stream wrapper schemes bypass the security check entirely, allowing path traversal and arbitrary file operations through the extraction process.

Attack Vector

Exploitation requires local access or user interaction to trigger processing of a malicious TAR archive. An attacker creates a TAR archive with filenames containing PHP stream wrapper syntax (e.g., file:///var/www/html/config.php). When a vulnerable application extracts this archive, the stream wrapper is interpreted by PHP, causing the file contents to be written to the attacker-specified path rather than the intended extraction directory.

In web applications like Drupal, this can be triggered by uploading a malicious archive through file upload functionality. The attack succeeds when the server-side code processes the archive using a vulnerable version of Archive_Tar, enabling attackers to write webshells or overwrite critical configuration files.

Detection Methods for CVE-2020-28949

Indicators of Compromise

  • Unexpected file modifications in web application directories, particularly PHP files or configuration files
  • TAR archives containing filenames with stream wrapper prefixes (e.g., file://, php://, data://)
  • Web server logs showing archive upload attempts followed by suspicious file access patterns
  • Newly created or modified PHP files in unexpected locations with webshell-like characteristics

Detection Strategies

  • Monitor file system integrity for unauthorized modifications to PHP files and configuration files in web application directories
  • Implement file upload scanning to detect TAR archives containing stream wrapper prefixes in filenames
  • Review PHP Archive_Tar version deployed across applications using dependency scanning tools
  • Deploy web application firewalls (WAF) with rules to detect and block malicious archive uploads

Monitoring Recommendations

  • Enable file integrity monitoring on critical web application directories and configuration files
  • Log and alert on any extraction operations performed by Archive_Tar in production environments
  • Monitor for unusual file write operations originating from web server processes
  • Track package version dependencies and alert when vulnerable Archive_Tar versions are detected

How to Mitigate CVE-2020-28949

Immediate Actions Required

  • Update PHP Archive_Tar to version 1.4.11 or later which includes comprehensive stream wrapper filtering
  • Apply Drupal security updates as specified in Drupal Security Advisory SA-CORE-2020-013
  • Review and patch all systems running affected Debian and Fedora distributions using vendor-provided security updates
  • Conduct a security audit of any TAR archive processing functionality in custom applications

Patch Information

Security patches are available from multiple sources. The upstream fix is available in Archive_Tar version 1.4.11 and later. Distribution-specific patches have been released through Debian Security Advisory DSA-4817, Debian LTS announcements, and Fedora package updates. Drupal users should apply the patches outlined in the official Drupal security advisory. For detailed technical discussion, refer to the GitHub issue.

Workarounds

  • Disable or restrict file upload functionality that processes TAR archives until patches can be applied
  • Implement additional server-side validation to reject TAR archives with suspicious filenames containing :// patterns
  • Run web applications with restricted file system permissions to limit the impact of arbitrary file write attempts
  • Consider isolating archive processing in sandboxed environments with limited file system access
bash
# Verify Archive_Tar version and update via PEAR
pear list | grep Archive_Tar
pear upgrade Archive_Tar

# Alternatively, update via Composer
composer show pear/archive_tar
composer update pear/archive_tar

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.8

  • EPSS Probability92.96%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Packet Storm Security Exploit

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA Security Advisory

  • Debian Security Advisory

  • Drupal Security Advisory

  • CISA Known Exploit Catalog
  • Vendor Resources
  • GitHub Issue Discussion
  • Related CVEs
  • CVE-2020-36193: PHP Archive Tar Path Traversal Vulnerability

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

  • CVE-2020-28948: PHP Archive Tar Unserialization Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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