# CVE-2020-7061: heap-buffer-overflow in phar_extract_file

- Severity: Medium 6.5 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.08%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-02-27T20:25:14.751Z
- Modified: 2026-09-08T08:48:24.700Z
- Also known as: BIT-LIBPHP-2020-7061, BIT-PHP-2020-7061, BIT-PHP-MIN-2020-7061
- Weaknesses: CWE-125
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 7.3.x before 7.3.15; from 7.4.x before 7.4.3
- php php: from 7.2.0 up to 7.2.27; from 7.3.0 up to 7.3.14; from 7.4.0 up to 7.4.2
- tenable tenable.sc: before 5.19.0
- libphp (Bitnami): from 7.2.0 before 7.2.28; from 7.3.0 before 7.3.15; from 7.4.0 before 7.4.3
- php (Bitnami): from 7.2.0 before 7.2.28; from 7.3.0 before 7.3.15; from 7.4.0 before 7.4.3
- php-min (Bitnami): from 7.2.0 before 7.2.28; from 7.3.0 before 7.3.15; from 7.4.0 before 7.4.3

## Every score

- php: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:2.0 6.4 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://bugs.php.net/bug.php?id=79171> (exploit, advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202003-57> (advisory, third-party-advisory, vendor-advisory)
- <https://www.tenable.com/security/tns-2021-14> (advisory, patch, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7061> (web)

## Sources

- CVE List: [CVE-2020-7061](https://www.cve.org/CVERecord?id=CVE-2020-7061), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2020-7061](https://nvd.nist.gov/vuln/detail/CVE-2020-7061), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2020-7061](https://osv.dev/vulnerability/BIT-LIBPHP-2020-7061), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2020-7061](https://osv.dev/vulnerability/BIT-PHP-2020-7061), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2020-7061](https://osv.dev/vulnerability/BIT-PHP-MIN-2020-7061), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2020-7061 · Whole record: https://cve.day/CVE-2020-7061.json · Rebuilt by cve.day 2026-11-25T22:57:50.999Z
