# CVE-2022-31629: $_COOKIE names string replacement (. -> _): cookie integrity vulnerabilities

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 49.6%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-28T22:25:10.116Z
- Modified: 2026-09-08T08:48:24.754Z
- Also known as: BIT-LIBPHP-2022-31629, BIT-PHP-2022-31629, BIT-PHP-MIN-2022-31629
- Weaknesses: CWE-20, CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 7.4.X before 7.4.31; from 8.0.X before 8.0.24; from 8.1.X before 8.1.11
- php php: before 7.4.31; from 8.0.0 before 8.0.24; from 8.1.0 before 8.1.11
- fedoraproject fedora: 35; 36; 37
- debian debian_linux: 10.0; 11.0
- libphp (Bitnami): before 7.4.31; from 8.0.0 before 8.0.24; from 8.1.0 before 8.1.11
- php (Bitnami): before 7.4.31; from 8.0.0 before 8.0.24; from 8.1.0 before 8.1.11
- php-min (Bitnami): before 7.4.31; from 8.0.0 before 8.0.24; from 8.1.0 before 8.1.11

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://bugs.php.net/bug.php?id=81727> (exploit, advisory, permissions-required, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XNIEABBH5XCXLFWWZYIDE457SPEDZTXV/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VI3E6A3ZTH2RP7OMLJHSVFIEQBIFM6RF/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2L5SUVYGAKSWODUQPZFBUB3AL6E6CSEV/> (vendor-advisory, web)
- <https://www.debian.org/security/2022/dsa-5277> (advisory, third-party-advisory, vendor-advisory)
- <https://security.gentoo.org/glsa/202211-03> (advisory, third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20221209-0001/> (advisory, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00030.html> (advisory, mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LSJVPJTX7T3J5V7XHR4MFNHZGP44R5XE/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/> (vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2024/04/12/11> (mailing-list, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31629> (web)

## Sources

- CVE List: [CVE-2022-31629](https://www.cve.org/CVERecord?id=CVE-2022-31629), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2022-31629](https://nvd.nist.gov/vuln/detail/CVE-2022-31629), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2022-31629](https://osv.dev/vulnerability/BIT-LIBPHP-2022-31629), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2022-31629](https://osv.dev/vulnerability/BIT-PHP-2022-31629), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2022-31629](https://osv.dev/vulnerability/BIT-PHP-MIN-2022-31629), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-31629 · Whole record: https://cve.day/CVE-2022-31629.json · Rebuilt by cve.day 2026-11-25T22:58:15.365Z
