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

CVE-2020-7060: PHP mbstring Buffer Overflow Vulnerability

CVE-2020-7060 is a buffer overflow vulnerability in PHP mbstring encoding functions that enables attackers to cause information disclosure or system crashes. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-7060 Overview

CVE-2020-7060 is an Out-of-Bounds Read vulnerability affecting PHP's mbstring extension. When using certain mbstring functions to convert multibyte encodings, specifically when processing Big5 character encoding conversions, the mbfl_filt_conv_big5_wchar function can be tricked into reading past the allocated buffer. This memory safety issue may lead to information disclosure of sensitive memory contents or cause application crashes, resulting in denial of service conditions.

Critical Impact

This vulnerability enables remote attackers to trigger information disclosure or crash PHP applications by supplying specially crafted multibyte encoding data to mbstring conversion functions without requiring authentication.

Affected Products

  • PHP versions 7.2.x below 7.2.27
  • PHP versions 7.3.x below 7.3.14
  • PHP versions 7.4.x below 7.4.2
  • Tenable Tenable.sc (various versions)
  • Oracle Communications Diameter Signaling Router
  • openSUSE Leap 15.1
  • Debian Linux 8.0

Discovery Timeline

  • February 10, 2020 - CVE-2020-7060 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-7060

Vulnerability Analysis

This vulnerability exists within PHP's mbstring extension, specifically in the Big5 to wide character conversion filter (mbfl_filt_conv_big5_wchar). The mbstring extension provides multibyte string handling capabilities essential for applications dealing with Asian character encodings such as Big5 (traditional Chinese), Shift-JIS, and others.

The core issue stems from improper bounds checking during the character encoding conversion process. When processing specially crafted input data, the conversion function fails to properly validate buffer boundaries before performing read operations. This allows an attacker to supply malformed Big5-encoded data that causes the function to read memory beyond the allocated buffer.

The vulnerability is classified as CWE-125 (Out-of-bounds Read), which occurs when software reads data past the end of an intended buffer. In PHP's case, this can expose sensitive information stored in adjacent memory regions or cause the PHP process to crash when accessing invalid memory addresses.

Root Cause

The root cause of CVE-2020-7060 lies in insufficient boundary validation within the mbfl_filt_conv_big5_wchar function. When parsing Big5-encoded input sequences, the function performs read operations based on expected character lengths without adequately verifying that sufficient data remains in the input buffer. This missing bounds check allows specially crafted input to trigger reads past the allocated memory region.

The Big5 encoding uses a two-byte structure for most characters, and the vulnerability is triggered when the conversion function encounters malformed or truncated sequences at the end of the input buffer, causing it to read beyond the intended memory boundaries.

Attack Vector

The attack can be executed remotely over the network without requiring authentication. An attacker can exploit this vulnerability by:

  1. Identifying PHP applications that use mbstring functions for character encoding conversion (e.g., mb_convert_encoding(), mb_strcut(), or similar functions)
  2. Crafting malicious input data containing specially formed Big5 encoding sequences
  3. Submitting this data to the application through user-controllable input vectors such as form fields, file uploads, or API parameters
  4. The vulnerable mbstring functions process the input, triggering the out-of-bounds read

Successful exploitation can leak sensitive memory contents back to the attacker or cause the PHP process to crash, resulting in denial of service. The vulnerability is particularly concerning for web applications that handle user-supplied character encoding data without strict input validation.

Detection Methods for CVE-2020-7060

Indicators of Compromise

  • Unexpected PHP process crashes or segmentation faults in applications using mbstring functions
  • Increased error logs showing memory-related issues during character encoding conversions
  • Anomalous requests containing malformed Big5 or multibyte encoded data
  • Unusual response sizes that may indicate memory content leakage

Detection Strategies

  • Monitor PHP error logs for segmentation faults and memory access violations related to mbstring operations
  • Implement web application firewall (WAF) rules to detect and block malformed multibyte encoding sequences
  • Deploy runtime application self-protection (RASP) solutions to detect out-of-bounds memory access attempts
  • Use intrusion detection systems (IDS) to identify patterns of malicious encoding-based attacks

Monitoring Recommendations

  • Enable detailed PHP error logging and monitor for crashes in mbfl_filt_conv_big5_wchar and related functions
  • Implement application performance monitoring (APM) to detect unusual crash patterns in PHP processes
  • Review access logs for requests containing suspicious Big5 or multibyte encoded payloads
  • Set up alerts for repeated PHP process restarts that may indicate exploitation attempts

How to Mitigate CVE-2020-7060

Immediate Actions Required

  • Upgrade PHP to patched versions: 7.2.27 or later, 7.3.14 or later, or 7.4.2 or later
  • Review applications for usage of vulnerable mbstring functions and implement input validation
  • Apply vendor-specific patches for affected products like Tenable.sc, Oracle Communications Diameter Signaling Router, and Linux distributions
  • Consider temporarily disabling Big5 encoding support if not required by the application

Patch Information

PHP has released security patches addressing this vulnerability in the following versions:

  • PHP 7.2.27 and later
  • PHP 7.3.14 and later
  • PHP 7.4.2 and later

Administrators should refer to the PHP Bug Report #79037 for technical details about the fix. Distribution-specific patches are available through:

  • Debian Security Advisory DSA-4626 and DSA-4628
  • Ubuntu Security Notice USN-4279-1
  • Gentoo GLSA 202003-57
  • Tenable Security Notification TNS-2021-14 for Tenable.sc users
  • Oracle CPU July 2020 and April 2021 for Oracle products

Workarounds

  • Implement strict input validation to sanitize and validate character encoding data before processing
  • Use allowlisting to restrict accepted character encodings to only those required by the application
  • Deploy web application firewalls with rules to filter potentially malicious multibyte sequences
  • Consider using alternative character conversion libraries that are not affected by this vulnerability
bash
# Check current PHP version for vulnerability
php -v | grep -E "PHP 7\.(2\.(0|[1-9]|1[0-9]|2[0-6])|3\.([0-9]|1[0-3])|4\.[01])"

# Update PHP on Debian/Ubuntu systems
sudo apt-get update && sudo apt-get upgrade php

# Update PHP on RHEL/CentOS systems
sudo yum update php

# Verify mbstring extension is using patched version
php -r "echo 'mbstring loaded: ' . (extension_loaded('mbstring') ? 'yes' : 'no') . PHP_EOL;"

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechPhp

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability9.31%

  • 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
  • openSUSE Security Announcement

  • Debian LTS Security Announcement

  • Bugtraq Security Discussion

  • Bugtraq Security Discussion

  • Bugtraq Security Discussion

  • Gentoo GLSA 202003-57

  • NetApp Security Advisory

  • Debian Security Advisory DSA-4626

  • Debian Security Advisory DSA-4628

  • Oracle CPU April 2021 Alert

  • Oracle CPU July 2020 Alert
  • Vendor Resources
  • PHP Bug Report #79037

  • Ubuntu Security Notice USN-4279-1

  • Tenable Security Notification TNS-2021-14
  • Related CVEs
  • CVE-2025-14178: PHP Buffer Overflow Vulnerability

  • CVE-2024-8932: PHP ldap_escape() Buffer Overflow Flaw

  • CVE-2024-11236: PHP ldap_escape() Buffer Overflow Flaw

  • CVE-2024-11233: PHP Buffer Overflow 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