PHP <7.4.31 8.0.24 8.1.11 Cookie Injection via insecure __Host-/__Secure-
CVE-2022-31629 Published on September 28, 2022
$_COOKIE names string replacement (. -> _): cookie integrity vulnerabilities
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.
Vulnerability Analysis
CVE-2022-31629 can be exploited with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality, a high impact on integrity, and no impact on availability.
Weakness Types
Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Improper Validation of Specified Quantity in Input
The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.
Products Associated with CVE-2022-31629
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2022-31629 are published in these products:
Affected Versions
PHP Group PHP:- Version 7.4.X and below 7.4.31 is affected.
- Version 8.0.X and below 8.0.24 is affected.
- Version 8.1.X and below 8.1.11 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.