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

CVE-2020-7062: PHP File Upload DOS Vulnerability

CVE-2020-7062 is a denial of service vulnerability in PHP that causes crashes during file upload with improper progress tracking cleanup. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-7062 Overview

CVE-2020-7062 is a null pointer dereference vulnerability in PHP affecting file upload functionality when upload progress tracking is enabled. When session.upload_progress.cleanup is set to 0 (disabled) and a file upload fails, PHP's upload procedure attempts to clean up data that does not exist, resulting in a null pointer dereference. This condition leads to application crashes and denial of service conditions affecting PHP-based web applications.

Critical Impact

Attackers can remotely trigger denial of service conditions by exploiting failed file uploads on PHP servers with upload progress tracking enabled and cleanup disabled, potentially crashing web applications and disrupting service availability.

Affected Products

  • PHP versions 7.2.x below 7.2.28
  • PHP versions 7.3.x below 7.3.15
  • PHP versions 7.4.x below 7.4.3
  • openSUSE Leap 15.1
  • Debian Linux 8.0, 9.0, 10.0
  • Ubuntu Linux 12.04, 14.04 ESM, 16.04 ESM, 18.04 LTS, 19.10

Discovery Timeline

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

Technical Details for CVE-2020-7062

Vulnerability Analysis

This vulnerability is classified as CWE-476 (Null Pointer Dereference), a memory corruption issue that occurs during PHP's file upload handling process. The flaw exists in the session upload progress tracking mechanism, which is designed to provide real-time upload progress information to web applications.

Under normal operation, when a file upload completes or fails, PHP performs cleanup operations on the upload progress data stored in the session. However, when the session.upload_progress.cleanup configuration directive is set to 0, PHP is instructed not to automatically clean up progress data after upload completion. The vulnerability manifests when an upload fails under these specific conditions—PHP's error handling path still attempts to dereference and clean up progress tracking data that was never properly initialized or has already been cleared.

The null pointer dereference results in an immediate crash of the PHP process, causing denial of service for the affected application. Since PHP commonly runs as a FastCGI process or module within web servers like Apache or Nginx, repeated exploitation can exhaust worker processes or require service restarts.

Root Cause

The root cause is improper null pointer handling in PHP's file upload progress tracking cleanup routine. When session.upload_progress.cleanup is disabled (set to 0) and an upload operation fails, the cleanup function attempts to access and free memory at an address that points to NULL or invalid memory. The code path lacks proper validation to check whether the upload progress data structure was properly initialized before attempting cleanup operations.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending specially crafted HTTP file upload requests to a vulnerable PHP application that has upload progress tracking enabled (session.upload_progress.enabled = 1) but cleanup disabled (session.upload_progress.cleanup = 0). The attacker initiates a file upload request and then causes the upload to fail—either through connection manipulation, sending malformed multipart data, or exceeding upload limits—triggering the vulnerable cleanup code path.

The vulnerability mechanism involves the following sequence: When PHP receives a file upload with progress tracking enabled, it initializes session data structures to track the upload progress. If the upload fails and cleanup is disabled, PHP's error handling attempts to clean up progress data that doesn't exist in the expected state, leading to the null pointer dereference. For detailed technical information, see the PHP Bug Report #79221.

Detection Methods for CVE-2020-7062

Indicators of Compromise

  • PHP process crashes or unexpected terminations coinciding with file upload requests
  • Web server error logs showing segmentation faults or null pointer dereference errors from PHP workers
  • Increased PHP-FPM or Apache mod_php worker restarts during periods of file upload activity
  • Application monitoring alerts indicating PHP process availability issues

Detection Strategies

  • Monitor web server and PHP error logs for segmentation fault messages and SIGSEGV signals originating from upload handling code paths
  • Implement version detection scanning to identify PHP installations running vulnerable versions (7.2.x < 7.2.28, 7.3.x < 7.3.15, 7.4.x < 7.4.3)
  • Review PHP configuration files for session.upload_progress.cleanup = 0 combined with session.upload_progress.enabled = 1
  • Deploy application-layer monitoring to detect abnormal patterns in file upload request failures

Monitoring Recommendations

  • Configure centralized logging to aggregate PHP crash events and correlate with incoming HTTP requests
  • Implement process monitoring to alert on PHP-FPM pool restarts or mod_php segmentation faults
  • Set up web application firewall rules to detect and log suspicious file upload patterns
  • Enable PHP core dump collection for post-incident analysis when investigating potential exploitation attempts

How to Mitigate CVE-2020-7062

Immediate Actions Required

  • Upgrade PHP to patched versions: 7.2.28 or later, 7.3.15 or later, or 7.4.3 or later
  • As a temporary workaround, set session.upload_progress.cleanup = 1 in php.ini to enable automatic cleanup
  • Review and apply operating system vendor patches from Debian, Ubuntu, openSUSE, or Gentoo as applicable
  • Restart PHP-FPM or web server services after applying configuration changes or updates

Patch Information

PHP has released patched versions that address this null pointer dereference vulnerability. Organizations should upgrade to PHP 7.2.28, 7.3.15, or 7.4.3 or later versions depending on their PHP branch. The fix adds proper null checks before attempting to clean up upload progress data structures.

Multiple Linux distributions have released security updates addressing this vulnerability:

  • Debian Security Advisory DSA-4717
  • Debian Security Advisory DSA-4719
  • Ubuntu Security Notice USN-4330-1
  • openSUSE Security Announcement
  • Gentoo GLSA 202003-57

Workarounds

  • Enable upload progress cleanup by setting session.upload_progress.cleanup = 1 in php.ini configuration
  • Disable upload progress tracking entirely by setting session.upload_progress.enabled = 0 if the feature is not required
  • Implement rate limiting on file upload endpoints to reduce potential denial of service impact
  • Deploy web application firewalls with rules to filter malformed multipart upload requests
bash
# Configuration workaround in php.ini
# Enable automatic cleanup of upload progress data (recommended)
session.upload_progress.cleanup = 1

# Or disable upload progress tracking entirely if not needed
session.upload_progress.enabled = 0

# Restart PHP-FPM after changes
sudo systemctl restart php-fpm

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPhp

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • OpenSUSE Security Announcement

  • Debian LTS Security Notice

  • Gentoo GLSA 202003-57

  • Ubuntu Security Notice USN-4330-1

  • Debian Security Advisory DSA-4717

  • Debian Security Advisory DSA-4719

  • Tenable Security Notification TNS-2021-14
  • Vendor Resources
  • PHP Bug Report #79221
  • Related CVEs
  • CVE-2025-14180: PHP PDO PostgreSQL DoS Vulnerability

  • CVE-2025-6491: PHP SOAP Extension DoS Vulnerability

  • CVE-2025-1735: PHP pgsql/pdo_pgsql DOS Vulnerability

  • CVE-2024-2757: PHP mb_encode_mimeheader DoS 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