CVE-2022-31629 Details
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 in PHP has been identified, affecting versions prior to 7.4.31, 8.0.24, and 8.1.11. This vulnerability allows network and same-site attackers to inject a standard insecure cookie into the victim's browser. The injected cookie is misinterpreted as a '__Host-' or '__Secure-' cookie by PHP applications, which can lead to integrity issues, especially if legitimate cookies already contain underscores. The vulnerability arises from PHP's handling of cookie names, where spaces, dots, and open square brackets are replaced with underscores. As a result, cookies sent with names starting with '..Host-' are treated as '__Host-' cookies, bypassing certain security measures.
Users can upgrade to PHP versions 7.4.33, 8.0.25, or 8.1.12. Instructions for upgrading PHP can be found in the respective PHP release announcements or through package management systems like 'apt' for Debian-based distributions or 'dnf' for Fedora.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 16, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
| CWE-1284 | Improper Validation of Specified Quantity in Input | CISA-ADP |
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| php php | < 7.4.31 >= 8.0.0, < 8.0.24 >= 8.1.0, < 8.1.11 |
CPE
Remediation
| |
| fedoraproject fedora | 35 36 37 |
CPE
Remediation
| |
| debian debian linux | 10.0 11.0 |
CPE
Remediation
| |
Change History
20 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 4, 2025 | CVE Modified | CVE |
| Nov 21, 2024 | CVE Modified | CVE |
| Oct 29, 2024 | CVE Modified | CISA-ADP |
| May 14, 2024 | CVE Modified | [email protected] |
| May 1, 2024 | CVE Modified | [email protected] |
| Apr 19, 2024 | CVE Modified | [email protected] |
| Apr 19, 2024 | CVE Modified | [email protected] |
| Apr 19, 2024 | CVE Modified | [email protected] |
| Nov 7, 2023 | CVE Modified | [email protected] |
| Jan 20, 2023 | Modified Analysis | [email protected] |
| Dec 15, 2022 | CVE Modified | [email protected] |
| Dec 9, 2022 | CVE Modified | [email protected] |
| Nov 22, 2022 | CVE Modified | [email protected] |
| Nov 14, 2022 | CVE Modified | [email protected] |
| Nov 7, 2022 | Modified Analysis | [email protected] |
| Oct 7, 2022 | CVE Modified | [email protected] |
| Oct 6, 2022 | CVE Modified | [email protected] |
| Sep 30, 2022 | Initial Analysis | [email protected] |