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

CVE-2020-7061: PHP PHAR Information Disclosure Vulnerability

CVE-2020-7061 is an information disclosure flaw in PHP PHAR extension on Windows that causes one-byte buffer over-read during file extraction. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-7061 Overview

CVE-2020-7061 is an out-of-bounds read vulnerability affecting PHP versions 7.3.x below 7.3.15 and 7.4.x below 7.4.3 on Windows systems. The vulnerability exists in the PHAR (PHP Archive) extension, where extracting specially crafted PHAR files can trigger a one-byte read past the allocated buffer. This memory safety issue could potentially lead to information disclosure or application crashes.

Critical Impact

This vulnerability allows attackers to potentially access sensitive memory contents or cause denial of service by crashing PHP applications processing malicious PHAR files on Windows systems.

Affected Products

  • PHP versions 7.3.x below 7.3.15
  • PHP versions 7.4.x below 7.4.3
  • Tenable Tenable.sc (versions using vulnerable PHP)

Discovery Timeline

  • 2020-02-27 - CVE-2020-7061 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-7061

Vulnerability Analysis

This vulnerability is classified as CWE-125 (Out-of-Bounds Read), a memory safety issue that occurs when software reads data past the end or before the beginning of an intended buffer. In the context of CVE-2020-7061, the PHP PHAR extension on Windows fails to properly validate buffer boundaries when processing certain content within PHAR archive files.

The flaw is Windows-specific, indicating that the vulnerable code path involves Windows-specific file handling or path parsing routines within the PHAR extraction logic. When a malicious PHAR file is processed, the parser can be induced to read one byte beyond the allocated memory buffer, potentially exposing adjacent memory contents or triggering an access violation that crashes the application.

Root Cause

The root cause lies in insufficient bounds checking within the PHAR extension's file extraction routines on Windows. The code fails to account for edge cases in file content parsing, allowing a one-byte over-read condition. This type of vulnerability typically arises from off-by-one errors in loop conditions, incorrect buffer size calculations, or missing validation of input-controlled length values before memory access operations.

Attack Vector

The attack vector is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious PHAR archive file with specific content designed to trigger the boundary condition
  2. Delivering the malicious PHAR file to a vulnerable PHP application (e.g., through file upload functionality, remote URL fetching, or other input mechanisms)
  3. Causing the PHP application to process the PHAR file using the phar extension's extraction functionality

The one-byte over-read can expose sensitive information from adjacent memory locations, potentially revealing cryptographic keys, session tokens, or other security-critical data. Additionally, depending on memory layout and operating system protections, the out-of-bounds access could cause the PHP process to crash, resulting in denial of service.

For detailed technical information about this vulnerability, refer to the PHP Bug Report #79171.

Detection Methods for CVE-2020-7061

Indicators of Compromise

  • Unexpected PHP process crashes during PHAR file processing operations
  • Memory access violation errors in PHP error logs on Windows systems
  • Suspicious PHAR files uploaded to web application directories
  • Unusual patterns in file upload activity targeting PHP applications

Detection Strategies

  • Monitor PHP error logs for segmentation faults or access violations related to PHAR operations
  • Implement file upload validation to inspect PHAR archive contents before processing
  • Deploy Web Application Firewalls (WAF) with rules to detect malicious PHAR file uploads
  • Use application-level monitoring to detect anomalous PHAR extraction behavior

Monitoring Recommendations

  • Enable verbose PHP error logging to capture memory-related exceptions
  • Monitor system event logs on Windows servers running PHP for application crashes
  • Implement network-level monitoring for unusual file upload patterns targeting .phar extensions
  • Set up alerts for PHP process restarts or unexpected terminations

How to Mitigate CVE-2020-7061

Immediate Actions Required

  • Upgrade PHP to version 7.3.15 or later for the 7.3.x branch
  • Upgrade PHP to version 7.4.3 or later for the 7.4.x branch
  • Review and restrict file upload functionality to prevent untrusted PHAR file processing
  • Consider disabling the PHAR extension if not required by your applications

Patch Information

PHP has released patched versions addressing this vulnerability. Users should upgrade to PHP 7.3.15 or later, or PHP 7.4.3 or later. For detailed information, see the PHP Bug Report #79171. Linux distribution users should consult their vendor's security advisories, such as Gentoo GLSA 202003-57. Tenable.sc users should refer to the Tenable Security Notice TNS-2021-14 for specific guidance.

Workarounds

  • Disable the PHAR extension in php.ini by setting phar.readonly = 1 and removing phar from enabled extensions
  • Implement strict input validation to reject PHAR files from untrusted sources
  • Use application-level filtering to block PHAR file uploads entirely if the functionality is not required
  • Deploy network segmentation to limit exposure of vulnerable PHP applications
bash
# Disable PHAR extension in php.ini
; Prevent PHAR file creation and modification
phar.readonly = 1

# Or comment out the PHAR extension entirely
; extension=phar

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPhp

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability1.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • Gentoo GLSA 202003-57
  • Vendor Resources
  • PHP Bug Report #79171

  • Tenable Security Notice TNS-2021-14
  • Related CVEs
  • CVE-2025-52023: Gems CMS Information Disclosure Vulnerability

  • CVE-2025-52022: GemS Loyalty Error Message Disclosure Flaw

  • CVE-2025-14177: PHP getimagesize() Info Disclosure Bug

  • CVE-2024-9026: PHP-FPM Information Disclosure Vulnerability
Default Legacy - Prefooter | 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