Original 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.
Affected software
- PHP ≥ 8.0.0 < 8.0.24< 7.4.31≥ 8.1.0 < 8.1.11 Fixed in: 8.0.24, 7.4.31, 8.1.11 exact match
Details
- Published
- 2022-09-29
- Last modified
- 2025-11-05
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N- CWE
- CWE-20
- EPSS (30-day exploit probability)
- 49.57% (percentile 99)
References
- cve.org/CVE-2022-31629
- nvd.nist.gov/vuln/detail/CVE-2022-31629
- bugs.php.net/bug.php?id=81727
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2...
- www.debian.org/security/2022/dsa-5277
- security.gentoo.org/glsa/202211-03
- security.netapp.com/advisory/ntap-20221209-0001/
- lists.debian.org/debian-lts-announce/2022/12/msg00030.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K...
- www.openwall.com/lists/oss-security/2024/04/12/11
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.