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-28948

CVE-2020-28948: PHP Archive Tar Unserialization Vulnerability

CVE-2020-28948 is an unserialization vulnerability in PHP Archive Tar allowing attacks due to incomplete PHAR protocol blocking. This article covers the technical details, affected versions, and mitigation steps.

Published: March 4, 2026

CVE-2020-28948 Overview

CVE-2020-28948 is an insecure deserialization vulnerability in PHP's Archive_Tar library through version 1.4.10. The vulnerability exists because the library's security filter blocks the phar: stream wrapper in lowercase but fails to block the uppercase PHAR: variant. This case-sensitivity bypass allows attackers to trigger PHP object unserialization when processing specially crafted archive files, potentially leading to arbitrary code execution.

Critical Impact

Attackers can exploit this case-sensitivity bypass to achieve arbitrary code execution through PHP object injection, affecting widely-deployed systems including Drupal CMS installations.

Affected Products

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

Discovery Timeline

  • November 19, 2020 - CVE-2020-28948 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-28948

Vulnerability Analysis

The Archive_Tar library is a widely-used PHP package for handling TAR archive files. This vulnerability stems from an incomplete security control implementation designed to prevent PHAR (PHP Archive) deserialization attacks. PHP's phar: stream wrapper can be exploited to trigger unserialize() calls when processing file paths, which can lead to arbitrary object instantiation and code execution through gadget chains.

The library's developers implemented a blocklist approach to prevent the use of phar: within archive file paths. However, the implementation only checks for the lowercase phar: string while PHP's stream wrapper handling is case-insensitive. This means that variations such as PHAR:, Phar:, or any other case combination successfully bypass the security filter while still being processed by PHP's stream wrapper.

This vulnerability is classified as CWE-502 (Deserialization of Untrusted Data) and affects any application that uses Archive_Tar to process user-supplied TAR files. The impact is particularly severe for content management systems like Drupal, where file uploads are common functionality.

Root Cause

The root cause is an incomplete blocklist implementation that performs a case-sensitive comparison against the phar: stream wrapper. PHP stream wrappers are case-insensitive, meaning PHAR://, phar://, and PhAr:// are all functionally equivalent. By only blocking the lowercase variant, the security measure can be trivially bypassed by using any alternative case combination.

Attack Vector

Exploitation requires local access with user interaction - specifically, a victim must process a maliciously crafted TAR archive using the vulnerable Archive_Tar library. The attacker constructs a TAR archive containing file entries with paths that reference the PHAR: stream wrapper (or other case variations). When the Archive_Tar library processes these paths, it bypasses the lowercase phar: check, and PHP's stream wrapper handling triggers deserialization of the PHAR archive's metadata.

The attack typically involves:

  1. Creating a PHAR archive with a malicious serialized object in its metadata
  2. Embedding a reference to this PHAR within a TAR archive using an uppercase PHAR: path
  3. Having the victim application process the TAR archive using Archive_Tar
  4. The deserialization triggers available gadget chains in the application, leading to code execution

Detection Methods for CVE-2020-28948

Indicators of Compromise

  • TAR archives containing file paths with case-variant PHAR: references (e.g., PHAR://, Phar://, pHaR://)
  • Unusual PHP deserialization errors in application logs following TAR file processing
  • Unexpected code execution or process spawning from web application processes

Detection Strategies

  • Implement file upload scanning to detect TAR archives containing PHAR stream wrapper references in any case variation
  • Monitor application logs for deserialization exceptions and errors during archive extraction operations
  • Deploy web application firewall (WAF) rules to inspect uploaded archives for malicious path entries
  • Use SentinelOne's behavioral analysis to detect anomalous process execution following web application file handling

Monitoring Recommendations

  • Enable verbose logging for applications processing user-uploaded TAR archives
  • Monitor for unusual file system access patterns from PHP processes, particularly PHAR file reads
  • Alert on Archive_Tar library usage in conjunction with user-supplied file processing

How to Mitigate CVE-2020-28948

Immediate Actions Required

  • Upgrade PHP Archive_Tar to version 1.4.11 or later which implements case-insensitive blocking
  • Update Drupal installations to patched versions as specified in Drupal Security Advisory SA-CORE-2020-013
  • Apply operating system package updates for affected Debian and Fedora systems
  • Review application code for direct Archive_Tar usage and ensure updated library versions are deployed

Patch Information

Security patches addressing this vulnerability are available from multiple sources. The primary fix is in Archive_Tar version 1.4.11 and later, which implements case-insensitive stream wrapper blocking. For detailed information, refer to the GitHub Archive_Tar Issue.

Distribution-specific updates are available:

  • Debian Security Announcement DSA-4817
  • Debian LTS Security Announcement
  • Gentoo GLSA 2021-23
  • Fedora package announcements for versions 32, 33, 34, and 35

Workarounds

  • Disable PHP's PHAR stream wrapper globally if not required by your application using stream_wrapper_unregister('phar')
  • Implement input validation to reject TAR archives containing stream wrapper references in file paths
  • Restrict file upload functionality to authenticated and trusted users only
  • Deploy application-level filtering that performs case-insensitive checks for all PHP stream wrapper schemes
bash
# Disable PHAR stream wrapper in PHP configuration (php.ini)
# Add to php.ini or include in your application's bootstrap
# Note: This may break applications that legitimately use PHAR archives
php -r "stream_wrapper_unregister('phar');"

# Alternatively, add to your PHP application initialization:
# if (in_array('phar', stream_get_wrappers())) {
#     stream_wrapper_unregister('phar');
# }

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechPhp Archive Tar

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability76.22%

  • 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
  • CWE References
  • CWE-502
  • Technical References
  • GitHub Archive_Tar Issue

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 2021-23

  • Debian Security Announcement DSA-4817

  • Drupal Security Advisory SA-CORE-2020-013
  • Related CVEs
  • CVE-2020-28949: PHP Archive Tar Path Traversal Flaw

  • CVE-2020-36193: PHP Archive Tar Path Traversal Vulnerability

  • CVE-2021-32610: PHP Archive Tar Path Traversal 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