All reports
Medium

php: standard insecure cookie could be treated as a '__Host-' or '__Secure-' cookie by PHP applications

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-31629

Probability of exploitation in the next 30 days: 49.57%

FIRST EPSS · 2026-11-21

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.

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.