CVE-2020-7065

published 1 Apr 2020 · updated 17 Sep 2024

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

7.4HighCVSS 7.4EPSS 5%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 5%. Fixed in PHP 7.3.16 and PHP 7.4.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=7.3.x <7.3.16, >=7.4.x <7.4.47.3.16, 7.4.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2020-7065 severity on Zeptric[![CVE-2020-7065](https://zeptric.io/badge/cve/CVE-2020-7065.svg)](https://zeptric.io/cve/CVE-2020-7065)