LiveActive security incident?Get immediate response
CVE Record

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

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.

MediumCVSS 6.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This flaw can let an attacker plant a normal browser cookie that a vulnerable PHP application may mistakenly trust as a stronger __Host- or __Secure- cookie. The main business risk is integrity loss in applications that use those cookie prefixes for security decisions, especially authentication or session controls.

Executive priority

Treat this as a near-term patching item for PHP-backed web systems, not an emergency absent exploitation evidence. Prioritize customer-facing or authentication-sensitive applications first because the documented impact is integrity compromise.

Technical view

PHP versions before 7.4.31, 8.0.24, and 8.1.11 mishandle cookie names because dot-to-underscore normalization can change how $_COOKIE entries are interpreted. The CVE states network and same-site attackers can set an insecure cookie that PHP applications treat as __Host- or __Secure-prefixed.

Likely exposure

Exposure is most likely in web applications running affected PHP 7.4.x, 8.0.x, or 8.1.x versions, including distribution-packaged PHP. Risk is higher where application logic relies on __Host- or __Secure- cookie names for trust boundaries.

Exploitation context

The provided sources do not indicate CISA KEV listing or confirmed active exploitation. CVSS marks network attack vector, low complexity, no privileges, and user interaction required, with high integrity impact and no stated confidentiality or availability impact.

Researcher notes

Focus review on PHP cookie-name normalization and application assumptions around reserved cookie prefixes. Evidence provided establishes affected versions and fixed PHP releases, but does not include product-specific exploitability, broad exploitation, or alternate mitigations beyond vendor updates.

Mitigation direction

  • Upgrade PHP to 7.4.31, 8.0.24, 8.1.11, or later supported releases.
  • Apply Debian, Fedora, Gentoo, NetApp, or other vendor backported security packages where applicable.
  • Prioritize applications using __Host- or __Secure- cookies for authentication or authorization decisions.
  • Review vendor advisories before applying product-specific workarounds or lifecycle decisions.

Validation and detection

  • Inventory production, staging, containers, and base images for affected PHP branches and package versions.
  • Confirm vendor package changelogs include the CVE-2022-31629 fix or equivalent backport.
  • Review application code that reads $_COOKIE and trusts __Host- or __Secure- cookie names.
  • Regression test cookie-based security flows after PHP or distribution package updates.
Prepared
Confidence
high
Sources
8

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-1284: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · low confidence lookup

CWE-20: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31629 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
14Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.5CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N2.83.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.5Medium
CVSS 3.1 vector shape for CVE-2022-31629Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
PHP GroupPHP7.4.X, 8.0.X, 8.1.XListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-1284 · source CWE mapping

Improper Validation of Specified Quantity in Input

Improper Validation of Specified Quantity in Input represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-20 · source CWE mapping

Improper Input Validation

Improper Input Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.