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

CVE-2020-28948: PHP Archive_Tar Unserialization Vulnerability

CVE-2020-28948 is an unserialization flaw in PHP Archive_Tar through version 1.4.10 caused by incomplete PHAR protocol filtering. This article covers technical details, affected versions, and mitigation.

Updated: May 16, 2026

CVE-2020-28948 Overview

CVE-2020-28948 is an insecure deserialization vulnerability in PEAR Archive_Tar through version 1.4.10. The library implements a block list that filters the lowercase phar: stream wrapper prefix, but fails to filter the uppercase PHAR: variant. PHP stream wrappers are case-insensitive, so an attacker who controls a filename passed to Archive_Tar can trigger PHAR deserialization and execute arbitrary PHP object methods via magic gadgets [CWE-502]. The flaw affects Drupal core, Debian, Fedora, and Gentoo distributions that ship the PEAR Archive_Tar component.

Critical Impact

Successful exploitation leads to arbitrary code execution in the context of the PHP process handling untrusted archive input.

Affected Products

  • PEAR Archive_Tar through 1.4.10
  • Drupal core (fixed in SA-CORE-2020-013)
  • Debian Linux 9 and 10, Fedora 32–35, Gentoo

Discovery Timeline

  • 2020-11-19 - CVE-2020-28948 published to NVD
  • 2020-11-19 - Debian Security Advisory DSA-4817 released
  • 2020-11-25 - Drupal Security Advisory SA-CORE-2020-013 released
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-28948

Vulnerability Analysis

Archive_Tar is a PEAR library used to read and write tar archives. The library added a check to prevent processing of filenames using the phar:// stream wrapper, since PHAR streams trigger automatic deserialization of the archive's metadata when accessed by functions such as file_exists, fopen, or stat. The check compared the lowercase string phar: against the supplied filename. PHP stream wrapper resolution is case-insensitive, so a filename beginning with PHAR: bypasses the filter while still being treated as a PHAR stream by the engine. An attacker who can influence a path argument passed to Archive_Tar, for example through a file upload or an administrative archive import flow in Drupal, can host a crafted PHAR archive and trigger deserialization of attacker-controlled objects. Combined with a magic-method gadget chain from the surrounding application, this yields arbitrary code execution.

Root Cause

The root cause is incomplete input validation of the protocol prefix. The string comparison filters only the lowercase form, while PHP itself accepts any case variation of the wrapper name. Refer to the PEAR Archive_Tar GitHub issue for upstream discussion.

Attack Vector

Exploitation requires local access or user interaction, typically uploading a crafted file with a .phar payload renamed to a benign extension and then causing the application to pass a filename such as PHAR://uploads/payload.jpg to Archive_Tar. The deserialization occurs implicitly when the library calls filesystem functions on the path. No memory corruption is involved; the vulnerability is entirely a logic flaw in PHP object handling.

Detection Methods for CVE-2020-28948

Indicators of Compromise

  • Files uploaded with .phar extensions, or non-archive extensions whose contents start with the PHAR magic bytes __HALT_COMPILER();
  • Web server or application logs containing path arguments beginning with PHAR:, Phar:, or mixed-case variants of the wrapper
  • Unexpected child processes spawned by the PHP-FPM or web server worker after archive operations

Detection Strategies

  • Inspect application code paths that pass user-influenced filenames to Archive_Tar constructors or to extract() and listContent() methods
  • Scan installed PHP dependencies for Archive_Tar versions at or below 1.4.10, including bundled copies inside Drupal core
  • Monitor PHP error and access logs for serialization-related warnings such as __wakeup, __destruct, or unserialize() notices originating from web request handlers

Monitoring Recommendations

  • Alert on writes to web-accessible directories of files containing PHAR signatures
  • Track outbound network connections initiated by PHP worker processes immediately after archive upload endpoints are hit
  • Correlate file upload events with subsequent process executions on the host

How to Mitigate CVE-2020-28948

Immediate Actions Required

  • Upgrade PEAR Archive_Tar to 1.4.11 or later, which filters the prefix case-insensitively
  • Apply Drupal core updates per Drupal Security Advisory SA-CORE-2020-013
  • Apply distribution updates referenced in Debian DSA-4817 and Gentoo GLSA 202101-23
  • Audit applications for any remaining bundled copies of Archive_Tar not managed by the system package manager

Patch Information

Upstream fix is tracked in the PEAR Archive_Tar repository. Distribution patches are available through Debian LTS and multiple Fedora package announcements.

Workarounds

  • Restrict the file extensions accepted by upload endpoints and reject files whose contents begin with the __HALT_COMPILER(); PHAR signature
  • Disable the phar stream wrapper at runtime where it is not required by setting phar.readonly=1 and removing phar from disable_functions-equivalent stream wrapper registrations
  • Process untrusted archives in an isolated, non-privileged container without write access to web roots
bash
# Verify installed Archive_Tar version on Debian/Ubuntu
dpkg -l | grep -i archive-tar

# Force upgrade via Composer for application-bundled copies
composer require pear/archive_tar:^1.4.14 --update-with-dependencies

# Confirm PHAR write protection is enabled
php -r "echo ini_get('phar.readonly');"

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.87%

  • 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 Issue Discussion

  • 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 Advisory 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 Flaw

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