CVE-2020-7070

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

State
Published
Severity
4.3 Medium
Published
Oct 2, 2020
Updated
Sep 16, 2024
Reserved
Jan 15, 2020

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.14.3 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:Nphp

Weaknesses

  • CWE-20 Improper Input Validation

Affected Products

ProductVersions
PHPPHP Group
  • 7.3.x to before 7.3.23Affected
  • 7.4.x to before 7.4.11Affected
  • 7.2.x to before 7.2.34Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.