Skip to content

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

HighCVSS 8.8 EPSS 4.9%
Published
Updated
Exploit status
No public exploit known

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 products

ProductAffected versionsFixed in
debian/php7.4(Debian:11) < 7.4.5-1 7.4.5-1
PHP >= 7.3.0, < 7.3.16 7.3.16
PHP >= 7.4.0, < 7.4.4 7.4.4
debian linux = 10.0 No fix listed
Canonical Ubuntu Linux = 12.04 No fix listed
Canonical Ubuntu Linux = 14.04 No fix listed
Canonical Ubuntu Linux = 16.04 No fix listed
Canonical Ubuntu Linux = 18.04 No fix listed
Canonical Ubuntu Linux = 19.10 No fix listed
Canonical Ubuntu Linux = 20.04 No fix listed
tenable.sc < 5.19.0 5.19.0
alpine/php7(Alpine:v3.11) < 7.3.16-r0 7.3.16-r0
alpine/php7(Alpine:v3.12) < 7.3.16-r0 7.3.16-r0
alpine/php7(Alpine:v3.13) < 7.3.16-r0 7.3.16-r0
alpine/php7(Alpine:v3.14) < 7.3.16-r0 7.3.16-r0
alpine/php7(Alpine:v3.15) < 7.3.16-r0 7.3.16-r0
PHP >= 7.3.x, < 7.3.16 7.3.16
PHP >= 7.4.x, < 7.4.4 7.4.4

References