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.
Advisories
Source ID Title
Debian DLA Debian DLA DLA-3243-1 php7.3 security update
Debian DLA Debian DLA DLA-3810-1 php7.3 security update
Debian DSA Debian DSA DSA-5277-1 php7.4 security update
Ubuntu USN Ubuntu USN USN-5717-1 PHP vulnerabilities
Ubuntu USN Ubuntu USN USN-5905-1 PHP vulnerabilities
Fixes

Solution

Upgrade to PHP 7.4.31, 8.0.24, or 8.1.11.


Workaround

No workaround given by the vendor.

History

Tue, 04 Nov 2025 18:30:00 +0000


Tue, 29 Oct 2024 15:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1284
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


cve-icon MITRE

Status: PUBLISHED

Assigner: php

Published:

Updated: 2025-11-04T17:12:24.069Z

Reserved: 2022-05-25T00:00:00.000Z

Link: CVE-2022-31629

cve-icon Vulnrichment

Updated: 2025-11-04T17:12:24.069Z

cve-icon NVD

Status : Modified

Published: 2022-09-28T23:15:10.540

Modified: 2025-11-04T18:15:39.487

Link: CVE-2022-31629

cve-icon Redhat

Severity : Moderate

Publid Date: 2022-09-29T00:00:00Z

Links: CVE-2022-31629 - Bugzilla

cve-icon OpenCVE Enrichment

No data.