CVE-2022-31629

$_COOKIE names string replacement (. -> _): cookie integrity vulnerabilities

State
Published
Severity
6.5 Medium
Published
Sep 28, 2022
Updated
Nov 4, 2025
Reserved
May 25, 2022

Read the record on cve.org

Description

In PHP versions before 7.4.31, 8.0.24 and 8.1.11, the vulnerability enables network and same-site attackers to set a standard insecure cookie in the victim's browser which is treated as a `__Host-` or `__Secure-` cookie by PHP applications.

Scores

CVSSScoreVectorSource
3.16.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:NCISA-ADP

Weaknesses

  • CWE-20 Improper Input Validation
  • CWE-1284 Improper Validation of Specified Quantity in Input

Affected Products

ProductVersions
PHPPHP Group
  • 7.4.X to before 7.4.31Affected
  • 8.0.X to before 8.0.24Affected
  • 8.1.X to before 8.1.11Affected

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.