CVE-2020-7070

PHP parses encoded cookie names so malicious `__Host-` cookies can be sent

MEDIUM
5.3
CVSS Score
Published: October 2, 2020 at 02:14 PM UTC
Updated: June 17, 2026 at 03:24 AM UTC
7 products affected across 7 vendorsDebian LinuxFedoraUbuntu Linux

Using PHP by PHP Group?

Get instant alerts when new vulnerabilities affect PHP - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.3
Exploit prediction
EPSS 5%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

PHP· PHPdrupal
95%
7.2.0 ≤ v < 7.2.347.2.x ≤ v < 7.2.347.3.0 ≤ v < 7.3.237.3.x ≤ v < 7.3.237.4.0 ≤ v < 7.4.117.4.x ≤ v < 7.4.117.2.x7.3.x7.4.x
Affected range stops below 7.2.34, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.3.23, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.4.11, so it looks safe — our inference, not a vendor statement
v < 5.19.0
Affected range stops below 5.19.0, so it looks safe — our inference, not a vendor statement

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-20CWE-565

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card