What’s Vulnerable › Vulnerabilities
CVE-2020-7061: heap-buffer-overflow in phar_extract_file
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-02-27 · updated 2026-06-17
- Weakness: CWE-125
Description
In PHP versions 7.3.x below 7.3.15 and 7.4.x below 7.4.3, while extracting PHAR files on Windows using phar extension, certain content inside PHAR file could lead to one-byte read past the allocated buffer. This could potentially lead to information disclosure or crash.
Affected products
- PHP: from 7.2.0 through 7.2.27; from 7.3.0 through 7.3.14; from 7.4.0 through 7.4.2
- Tenable.sc: before 5.19.0 — fixed in 5.19.0
How to fix
Upgrade to a fixed version: Tenable.sc 5.19.0. Check the vendor advisory for mitigations.
References
- https://bugs.php.net/bug.php?id=79171
- https://security.gentoo.org/glsa/202003-57
- https://www.tenable.com/security/tns-2021-14
- https://bugs.php.net/bug.php?id=79171
- https://security.gentoo.org/glsa/202003-57
- https://www.tenable.com/security/tns-2021-14
Get alerted when CVE-2020-7061 or the next vulnerability affects your stack