CVE-2020-7068
Use of freed hash key in the phar_parse_zipfile function
Reported by php · Published September 9, 2020
In PHP versions 7.2.x below 7.2.33, 7.3.x below 7.3.21 and 7.4.x below 7.4.9, while processing PHAR files using phar extension, phar_parse_zipfile could be tricked into accessing freed memory, which could lead to a crash or information disclosure.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php7 | Alpine | 7.3.22-r0, 7.2.33-r0 |
| php | Bitnami | 7.4.9, 7.3.21, 7.2.33 |
| php-min | Bitnami | 7.4.9, 7.3.21, 7.2.33 |
| libphp | Bitnami | 7.4.9, 7.3.21, 7.2.33 |
| php | Bitnami | 7.4.9, 7.3.21, 7.2.33 |
| libphp | Bitnami | 7.4.9, 7.3.21, 7.2.33 |
| php | php | 7.4.9, 7.3.21, 7.2.33 |
| tenable.sc | tenable | 5.19.0 |
| php7.4 | Ubuntu:20.04:LTS | 7.4.3-4ubuntu2.5 |
| PHP | PHP Group | 7.4.9, 7.3.21, 7.2.33 |
| php7.2 | Ubuntu:18.04:LTS | 7.2.24-0ubuntu0.18.04.8 |
| php5 | Ubuntu:Pro:14.04:LTS | 5.5.9+dfsg-1ubuntu4.29+esm14 |
2 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 7.3.x, 7.4.x, 7.2.x |
| alpine | php7 | 0, 0 |
| PHP Group | PHP | 7.3.x, 7.4.x, 7.2.x |
Timeline
- Sep 9, 2020 CVE Published
- Nov 9, 2020 PoC Published (6 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 7, 2026 Security Advisory (7 in total, the first dated here)
- Aug 29, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-7068
vulnetix vdb fixes CVE-2020-7068
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-7068/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- GLSA-202009-10 vendor-advisoryx_refsource_GENTOO
- x_refsource_CONFIRM
- DSA-4856 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM