CVE-2020-7070
PHP parses encoded cookie names so malicious `__Host-` cookies can be sent
Reported by php · Published October 2, 2020
In PHP versions 7.2.x below 7.2.34, 7.3.x below 7.3.23 and 7.4.x below 7.4.11, when PHP is processing incoming HTTP cookie values, the cookie names are url-decoded. This may lead to cookies with prefixes like __Host confused with cookies that decode to such prefix, thus leading to an attacker being able to forge cookie which is supposed to be secure. See also CVE-2020-8184 for more information.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php | Bitnami | 7.4.11, 7.3.23, 7.2.34 |
| php7.4 | Ubuntu:20.04:LTS | 7.4.3-4ubuntu2.4 |
| PHP | PHP Group | 7.4.11, 7.3.23, 7.2.34 |
| tenable.sc | tenable | 5.19.0 |
| php7.0 | Ubuntu:16.04:LTS | 7.0.33-0ubuntu0.16.04.16 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 7.3.x, 7.4.x, 7.2.x |
| PHP Group | PHP | 7.3.x, 7.4.x, 7.2.x |
| alpine | php7 | 0, 0 |
Timeline
- Oct 2, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jun 28, 2021 PoC Published (5 in total, the first dated here)
- Mar 7, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 7, 2026 Security Advisory (9 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-7070
vulnetix vdb fixes CVE-2020-7070
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-7070/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- FEDORA-2020-4573f0e03a vendor-advisoryx_refsource_FEDORA
- [debian-lts-announce] 20201006 [SECURITY] [DLA 2397-1] php7.0 security update mailing-listx_refsource_MLIST
- FEDORA-2020-4fe6b116e5 vendor-advisoryx_refsource_FEDORA
- FEDORA-2020-94763cb98b vendor-advisoryx_refsource_FEDORA
- openSUSE-SU-2020:1703 vendor-advisoryx_refsource_SUSE
- USN-4583-1 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2020:1767 vendor-advisoryx_refsource_SUSE
- GLSA-202012-16 vendor-advisoryx_refsource_GENTOO
- DSA-4856 vendor-advisoryx_refsource_DEBIAN
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_CONFIRM