CVE-2020-7065

mb_strtolower (UTF-32LE): stack-buffer-overflow at php_unicode_tolower_full

HIGH
8.8
CVSS Score
Published: April 1, 2020 at 03:35 AM UTC
Updated: June 17, 2026 at 03:24 AM UTC
4 products affected across 4 vendorsDebian LinuxUbuntu LinuxPHP

Using PHP by PHP Group?

Get instant alerts when new vulnerabilities affect PHP - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 5%

Description

In PHP versions 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using mb_strtolower() function with UTF-32LE encoding, certain invalid strings could cause PHP to overwrite stack-allocated buffer. This could lead to memory corruption, crashes and potentially code execution.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

PHP· PHPdrupal
95%
7.3.0 ≤ v < 7.3.167.3.x ≤ v < 7.3.167.4.0 ≤ v < 7.4.47.4.x ≤ v < 7.4.47.3.x7.4.x
Affected range stops below 7.3.16, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.4.4, so it looks safe — our inference, not a vendor statement
v < 5.19.0
Affected range stops below 5.19.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (8)

x_refsource_MISCExploitIssue TrackingPatchVendor Advisory
https://bugs.php.net/bug.php?id=79371
Vendor Advisoryx_refsource_UBUNTUThird Party Advisory
https://usn.ubuntu.com/4330-1/
Vendor Advisoryx_refsource_UBUNTUThird Party Advisory
https://usn.ubuntu.com/4330-2/
Vendor Advisoryx_refsource_DEBIANThird Party Advisory
https://www.debian.org/security/2020/dsa-4719
x_refsource_MISCPatchThird Party Advisory
https://www.oracle.com/security-alerts/cpuoct2021.html
x_refsource_CONFIRMRelease NotesVendor Advisory
https://www.php.net/ChangeLog-7.php#7.4.4
x_refsource_CONFIRMThird Party Advisory
https://www.tenable.com/security/tns-2021-14

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-121CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card