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
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
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 6.5 Medium | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N | CISA-ADP |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
PHPPHP Group |
|
References
- https://bugs.php.net/bug.php?id=81727
- FEDORA-2022-0b77fbd9e7vendor-advisory
- FEDORA-2022-afdea1c747vendor-advisory
- FEDORA-2022-f204e1d0edvendor-advisory
- DSA-5277vendor-advisory
- GLSA-202211-03vendor-advisory
- https://security.netapp.com/advisory/ntap-20221209-0001/
- [debian-lts-announce] 20221215 [SECURITY] [DLA 3243-1] php7.3 security updatemailing-list
- FEDORA-2024-b46619f761vendor-advisory
- FEDORA-2024-39d50cc975vendor-advisory
- FEDORA-2024-5e8ae0def0vendor-advisory
- [oss-security] 20240412 PHP security releases 8.1.28, 8.2.18, & 8.3.6mailing-list
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/
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.