PT-2020-2040 · Php+7 · Php+7
Published
2020-03-17
·
Updated
2025-08-11
·
CVE-2020-7065
CVSS v2.0
10
High
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
PHP versions 7.3.x below 7.3.16
PHP versions 7.4.x below 7.4.4
Description
The issue is related to the use of the
mb strtolower() function with UTF-32LE encoding in PHP. Certain invalid strings could cause PHP to overwrite the stack-allocated buffer, leading to memory corruption, crashes, and potentially code execution. This could allow a remote attacker to execute arbitrary code.Recommendations
For PHP versions 7.3.x below 7.3.16, update to version 7.3.16 or later to resolve the issue.
For PHP versions 7.4.x below 7.4.4, update to version 7.4.4 or later to resolve the issue.
As a temporary workaround, consider avoiding the use of the
mb strtolower() function with UTF-32LE encoding until a patch is available.Exploit
Fix
Memory Corruption
Stack Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Centos
Linuxmint
Php
Red Hat
Rocky Linux
Ubuntu