CVE-2022-31629: $_COOKIE names string replacement (. -> _): cookie integrity vulnerabilities
Vulnerability summary
CVE-2022-31629 is a medium (CVSS 6.5) Improper Input Validation vulnerability in debian debian_linux. EPSS estimates a 49.57% chance of exploitation in the next 30 days, higher than 98.8% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 17 · Related 10Timeline
- 28-09-2022PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- OSV · DebianEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
- OSV · AlpineEcosystem advisory · calculated6.5MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
EPSS trend
Probability
49.57%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
Increase +0.23 pp
From 49.34% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.php.net)
Maturity: unknown
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-1284Improper Validation of Specified Quantity in InputThe product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.
Affected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu5 products
- php5All versions (No fix recorded)
- php7.0< 7.0.33-0ubuntu0.16.04.16+esm5
- php7.2< 7.2.24-0ubuntu0.18.04.15
- php7.4< 7.4.3-4ubuntu2.15
- php8.1< 8.1.2-1ubuntu2.8
Alpine3 products
- php7< 7.4.32-r0
- php8< 8.0.24-r0 | < 8.0.25-r0
- php81< 8.1.11-r0
Debian2 products
- php7.4< 7.4.33-1+deb11u1
- debian_linuxEOL10.0 | 11.0
Fedoraproject1 product
- fedoraEOL35 | 36 | 37
Php1 product
- php< 7.4.31 | ≥ 8.0.0, < 8.0.24 | ≥ 8.1.0, < 8.1.11
Php group1 product
- php≥ 7.4.X, < 7.4.31 | ≥ 8.0.X, < 8.0.24 | ≥ 8.1.X, < 8.1.11
6 vendors · 13 products
References
22 links- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- security.netapp.com/advisory/ntap-20221209-0001/Third Party Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
- lists.fedoraproject.org/archives/…Vendor Advisory
Show all 22 references
- lists.fedoraproject.org/archives/…Vendor Advisory