CVE-2022-31629

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

Published Sep 28, 2022 CVSS 3.1 · 6.5 Medium EPSS 49.6% KEV · Not listed
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

Vendor Solution

Upgrade to PHP 7.4.31, 8.0.24, or 8.1.11.

Tracking

Sign in to view the affected projects.

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

Sources

Status
PUBLISHED
Assigner
php
Published
Updated
Nov 4, 2025, 5:12 PM
Reserved
May 25, 2022, 12:00 AM
Status
Modified
Published
Sep 28, 2022, 11:15 PM
Modified
Jun 17, 2026, 4:45 AM
Severity
Moderate
Public date
Sep 29, 2022, 12:00 AM