{"id":"CVE-2020-7065","published":"2020-04-01T03:35:13Z","modified":"2024-09-17T04:25:45Z","title":"mb_strtolower (UTF-32LE): stack-buffer-overflow at php_unicode_tolower_full","vendor":"PHP","product":"PHP","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04869,"percentile":0.92253,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://usn.ubuntu.com/4330-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://usn.ubuntu.com/4330-2/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://www.debian.org/security/2020/dsa-4719","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://security.netapp.com/advisory/ntap-20200403-0001/","tags":["x_refsource_CONFIRM"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2021.html","tags":["x_refsource_MISC"]},{"url":"https://bugs.php.net/bug.php?id=79371","tags":["x_refsource_MISC"]},{"url":"https://www.php.net/ChangeLog-7.php#7.4.4","tags":["x_refsource_CONFIRM"]},{"url":"https://www.tenable.com/security/tns-2021-14","tags":["x_refsource_CONFIRM"]}],"priority":{"score":23.6,"factors":[{"name":"EPSS percentile","points":18.45},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"php","affectedVersions":[{"vendor":"PHP Group","product":"PHP","versions":[">= 7.3.x, < 7.3.16",">= 7.4.x, < 7.4.4"]}],"summary":{"text":"The flaw is a stack-based buffer overflow in PHP's mb_strtolower() function, within its handling of UTF-32LE encoded input (php_unicode_tolower_full), affecting PHP 7.3.x before 7.3.16 and 7.4.x before 7.4.4. An attacker who can supply a specially crafted invalid string to mb_strtolower() with UTF-32LE encoding can overwrite a stack-allocated buffer, causing memory corruption and crashes, with potential code execution; the attack is network-reachable, requires high attack complexity, and needs no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:39:30Z"},"euvd":{"id":"EUVD-2020-28199","exploited":false,"provenance":"source"}}