CVE-2020-7061 json
heap-buffer-overflow in phar_extract_file
published 6y ago modified 2mo ago also BIT-libphp-2020-7061 , BIT-php-2020-7061 , BIT-php-min-2020-7061 , EUVD-2020-28195
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.1%
- EPSS 4.1% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami libphp 7.2.28, 7.3.15, 7.4.3
- bitnami php 7.2.28, 7.3.15, 7.4.3
- bitnami php-min 7.2.28, 7.3.15, 7.4.3
- PHP Group PHP 7.3.15, 7.4.3
- php7 Alpine 3.15, Alpine 3.14, Alpine 3.13 +2 more 7.3.15-r0
alpine advisories ALPINE-CVE-2020-7061
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- tenable.com/security/tns-2021-14 advisory
Is CVE-2020-7061 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-7061 updated cvss 9.1
php: heap-based buffer overflow in phar_extract_file
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Enterprise Linux 8 php, libzip, php-gd, php-cli, php-dba, php-dbg, +30 more Red Hat Software Collections rh-php72-php, rh-php73-php, rh-php72-php-gd, rh-php73-php-gd, rh-php72-php-cli, rh-php72-php-dba, +50 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-027-02 updated cvss 9.1
Festo Didactic SE MES PC
-
Festo Didactic SE MES PC shipped_with_Windows_10affected: vendor fix
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
Exploit prediction
4.08% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- bugs.php.net https://bugs.php.net/bug.php?id=79171 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
| OSV | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | libphp | >=7.2.0, <7.2.28 >=7.3.0, <7.3.15 >=7.4.0, <7.4.3 |
7.2.28 7.3.15 7.4.3 |
| bitnami | php | >=7.2.0, <7.2.28 >=7.3.0, <7.3.15 >=7.4.0, <7.4.3 |
7.2.28 7.3.15 7.4.3 |
| bitnami | php-min | >=7.2.0, <7.2.28 >=7.3.0, <7.3.15 >=7.4.0, <7.4.3 |
7.2.28 7.3.15 7.4.3 |
Affected products
- PHP Group PHP
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
tenable.com
/security/tns-2021-14
patch, third-party-advisory, advisory
-
bugs.php.net
/bug.php?id=79171
exploit, vendor-advisory, advisory
-
security.gentoo.org
/glsa/202003-57
vendor-advisory, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-7061
web
Sources
- CVE List CVE-2020-7061
- NVD CVE-2020-7061
- OSV BIT-libphp-2020-7061
- OSV BIT-php-2020-7061
- OSV BIT-php-min-2020-7061
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.