CVE-2022-31629
php: standard insecure cookie could be treated as a '__Host-' or '__Secure-' cookie by PHP applications
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · September 29, 2022
Updated · November 21, 2025
Description
A vulnerability was found in PHP due to the way PHP handles HTTP variable names. It interferes with HTTP variable names that clash with ones that have a specific semantic meaning. This vulnerability allows 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, posing a threat to data integrity.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 6.5CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
CWE-20 · Improper Input Validation