CVE-2022-31629

Public Exploit
$_COOKIE names string replacement (. -> _): cookie integrity vulnerabilities

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.

Remediation

Solution:

  • Upgrade to PHP 7.4.31, 8.0.24, or 8.1.11.

Categories

6.5
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 32.59% Top 5%
Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory debian.org Vendor Advisory gentoo.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org Vendor Advisory php.net
Affected: PHP Group PHP
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-31629?
CVE-2022-31629 has been scored as a medium severity vulnerability.
How to fix CVE-2022-31629?
To fix CVE-2022-31629: Upgrade to PHP 7.4.31, 8.0.24, or 8.1.11.
Is CVE-2022-31629 being actively exploited in the wild?
It is possible that CVE-2022-31629 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~33% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-31629?
CVE-2022-31629 affects PHP Group PHP.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.