CVE-2020-7065 in Canonical Ubuntu Linux and 3 more products
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.
Affects 4 products from 4 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 12.04 14.04 16.04 18.04 19.10 20.04 |
| Debian | Debian Linux | 10.0 |
| Php | Php | ≥ 7.3.0, < 7.3.16 ≥ 7.4.0, < 7.4.4 |
| Tenable | Tenable.Sc | < 5.19.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-7065 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-211466-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published | 2020-04-01 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-121: Stack-Based Buffer Overflow
Buffer overflow corrupting the program stack, typically overwriting the return address for code execution.
CWE-787: Out-of-Bounds Write
Software writes data past buffer boundaries, corrupting memory and potentially enabling code execution.
Analysis AI-written, not human-reviewed
A vulnerability in PHP versions 7.3.x below 7.3.16 and 7.4.x below 7.4.4 allows for memory corruption, crashes, and potentially code execution due to improper handling of invalid strings with the mb_strtolower() function using UTF-32LE encoding.
An attacker can exploit this vulnerability by providing specially crafted input to the mb_strtolower() function when using UTF-32LE encoding, leading to a buffer overflow and potential code execution.
Questions
What is CVE-2020-7065?
A vulnerability in PHP versions 7.3.x below 7.3.16 and 7.4.x below 7.4.4 allows for memory corruption, crashes, and potentially code execution due to improper handling of invalid strings with the mb_strtolower() function using UTF-32LE encoding.
What is the CVSS score for CVE-2020-7065?
CVE-2020-7065 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 4.9%.
Is CVE-2020-7065 actively exploited?
No confirmed active exploitation of CVE-2020-7065 as of 2026-09-25.
How do I remediate CVE-2020-7065?
Priority: IMMEDIATE. Advisory: https://bugs.php.net/bug.php?id=79371 PSIRT: [email protected]
What systems are affected by CVE-2020-7065?
CVE-2020-7065 affects Canonical Ubuntu Linux; Debian Debian Linux; Php Php; Tenable Tenable.Sc.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.