CVE-2022-31629 json
$_COOKIE names string replacement (. -> _): cookie integrity vulnerabilities
published 2022-09-28 4 y ago modified 2026-09-08 2 mo ago also BIT-libphp-2022-31629 , BIT-php-2022-31629 , BIT-php-min-2022-31629 , EUVD-2022-53081
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 49.6%
- EPSS 49.6% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami libphp 7.4.31, 8.0.24, 8.1.11
- bitnami php 7.4.31, 8.0.24, 8.1.11
- bitnami php-min 7.4.31, 8.0.24, 8.1.11
- PHP Group PHP 7.4.31, 8.0.24, 8.1.11
- php7.4 Debian 11 7.4.33-1+deb11u1
debian advisories DEBIAN-CVE-2022-31629
- php7.2 Ubuntu 18.04 LTS 7.2.24-0ubuntu0.18.04.15
- php7.4 Ubuntu 20.04 LTS 7.4.3-4ubuntu2.15
- php8.1 Ubuntu 22.04 LTS 8.1.2-1ubuntu2.8
- php7.0 Ubuntu Pro 16.04 LTS 7.0.33-0ubuntu0.16.04.16+esm5
ubuntu advisories UBUNTU-CVE-2022-31629
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- php RHEL 8 7.4.33-1.module+el8.8.0+17865+ef7eddfa
- libzip RHEL 8 1.6.1-1.module+el8.3.0+6678+b09f589e
- php-gd RHEL 8 7.4.33-1.module+el8.8.0+17865+ef7eddfa
- php-cli RHEL 8 7.4.33-1.module+el8.8.0+17865+ef7eddfa
- php-dba RHEL 8 7.4.33-1.module+el8.8.0+17865+ef7eddfa
- php-dbg RHEL 8 7.4.33-1.module+el8.8.0+17865+ef7eddfa
- php-ffi RHEL 8 7.4.33-1.module+el8.8.0+17865+ef7eddfa
- php-fpm RHEL 8 7.4.33-1.module+el8.8.0+17865+ef7eddfa
red hat advisories RHSA-2023:2903RHSA-2023:2417RHSA-2023:0965RHSA-2023:0848
- php7 SLES for SAP 15 SP2, SLES 15 SP2-LTSS, SLES 15 SP2-BCL +10 more 7.4.33-150200.3.46.2
- php7-test openSUSE Leap 15.3 7.4.33-150200.3.46.2
- php74 SLE Software Development Kit 12 SP5, SLE Module for Web and Scripting 12 7.4.33-1.47.2
- php7 SLES for SAP 15 SP1, SLES for SAP 15, SLES 15-LTSS +8 more 7.2.34-150000.4.103.1
- php7 SLE Module for Legacy 15 SP4, openSUSE Leap 15.4 7.4.33-150400.4.13.1
- php7-fpm SLE Module for Legacy 15 SP4, openSUSE Leap 15.4 7.4.33-150400.4.13.1
- php7-test openSUSE Leap 15.4 7.4.33-150400.4.13.2
- php7-embed SLE Module for Package Hub 15 SP4, openSUSE Leap 15.4 7.4.33-150400.4.13.1
suse advisories SUSE-SU-2022:4069-1SUSE-SU-2022:4068-1SUSE-SU-2022:4067-1SUSE-SU-2022:3997-1SUSE-SU-2022:3957-1SUSE-SU-2022:3830-1
- php8 openSUSE Tumbleweed 8.3.6-1.1
opensuse advisories openSUSE-SU-2024:13867-1
- php AlmaLinux 9 8.2.25-1.module_el9.5.0+132+adb0ae7a
- php-gd AlmaLinux 9 8.2.25-1.module_el9.5.0+132+adb0ae7a
- php-cli AlmaLinux 9 8.2.25-1.module_el9.5.0+132+adb0ae7a
- php-dba AlmaLinux 9 8.2.25-1.module_el9.5.0+132+adb0ae7a
- php-dbg AlmaLinux 9 8.2.25-1.module_el9.5.0+132+adb0ae7a
- php-ffi AlmaLinux 9 8.2.25-1.module_el9.5.0+132+adb0ae7a
- php-fpm AlmaLinux 9 8.2.25-1.module_el9.5.0+132+adb0ae7a
- php-gmp AlmaLinux 9 8.2.25-1.module_el9.5.0+132+adb0ae7a
almalinux advisories ALSA-2024:10949ALSA-2024:10950ALSA-2024:10951ALSA-2024:10952ALSA-2023:2903ALSA-2023:2417
- php-pecl-rrd Rocky Linux 9 2.0.3-4.module+el9.7.0+40005+715283ec
- php-pecl-rrd Rocky Linux 9 2.0.3-4.module+el9.7.0+40004+bf50a568
- php-pecl-rrd Rocky Linux 9 2.0.3-4.module+el9.7.0+40003+454ed3c4
- php-pecl-zip Rocky Linux 9 1.20.1-1.module+el9.7.0+40003+454ed3c4
- php-pecl-apcu Rocky Linux 9 5.1.21-1.module+el9.7.0+40003+454ed3c4
- php-pecl-xdebug3 Rocky Linux 9 3.1.4-1.module+el9.7.0+40003+454ed3c4
- php Rocky Linux 8 7.4.33-1.module+el8.10.0+1604+6558efc7
- libzip Rocky Linux 8 1.6.1-1.module+el8.10.0+1912+72767185
rocky linux advisories RLSA-2023:2417RLSA-2023:2903RLSA-2023:0965RLSA-2023:0848
- php7 Alpine 3.15, Alpine 3.14 7.4.32-r0
- php8 Alpine 3.16, Alpine 3.14 8.0.24-r0
- php8 Alpine 3.15 8.0.25-r0
- php81 Alpine 3.19, Alpine 3.18, Alpine 3.17 +1 more 8.1.11-r0
alpine advisories ALPINE-CVE-2022-31629
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-31629 updated cvss 6.5
php: standard insecure cookie could be treated as a '__Host-' or '__Secure-' cookie by PHP applications
-
Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 moreaffected: no fix planned “Out of support scope”
-
Red Hat Software Collections rh-php73-php, rh-php73-php-gd, rh-php73-php-cli, rh-php73-php-dba, rh-php73-php-dbg, rh-php73-php-fpm, +22 moreaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux AppStream (v. 8) php 7.4.33-1.module+el8.8.0+17865+ef7eddfa, php 8.0.27-1.module+el8.7.0+17863+0ad92cd2, libzip 1.6.1-1.module+el8.3.0+6678+b09f589e, libzip 1.7.3-1.module+el8.6.0+13671+84712317, php-gd 7.4.33-1.module+el8.8.0+17865+ef7eddfa, php-gd 8.0.27-1.module+el8.7.0+17863+0ad92cd2, +60 morefixed: vendor fix RHSA-2023:0848
-
Red Hat Enterprise Linux AppStream (v. 9) php 8.0.27-1.el9_1, php-gd 8.0.27-1.el9_1, php-cli 8.0.27-1.el9_1, php-dba 8.0.27-1.el9_1, php-dbg 8.0.27-1.el9_1, php-ffi 8.0.27-1.el9_1, +47 morefixed: vendor fix RHSA-2023:0965
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-027-02 updated cvss 6.5
Festo Didactic SE MES PC
-
Festo Didactic SE MES PC shipped_with_Windows_10affected: vendor fix
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
49.57% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- bugs.php.net https://bugs.php.net/bug.php?id=81727 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
| OSV | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | libphp | <7.4.31 >=8.0.0, <8.0.24 >=8.1.0, <8.1.11 |
7.4.31 8.0.24 8.1.11 |
| bitnami | php | <7.4.31 >=8.0.0, <8.0.24 >=8.1.0, <8.1.11 |
7.4.31 8.0.24 8.1.11 |
| bitnami | php-min | <7.4.31 >=8.0.0, <8.0.24 >=8.1.0, <8.1.11 |
7.4.31 8.0.24 8.1.11 |
Affected products
- PHP Group PHP
Classification
- Weakness
- Technology feeds
References
-
bugs.php.net
/bug.php?id=81727
exploit, permissions-required, vendor-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/XNIEABBH5XCXLFWWZYIDE457SPEDZTXV/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/VI3E6A3ZTH2RP7OMLJHSVFIEQBIFM6RF/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/2L5SUVYGAKSWODUQPZFBUB3AL6E6CSEV/
vendor-advisory, web
-
debian.org
/security/2022/dsa-5277
vendor-advisory, third-party-advisory, advisory
-
security.gentoo.org
/glsa/202211-03
vendor-advisory, third-party-advisory, advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/LSJVPJTX7T3J5V7XHR4MFNHZGP44R5XE/
vendor-advisory, web
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/
vendor-advisory, web
-
security.netapp.com
/advisory/ntap-20221209-0001/
third-party-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2022/12/msg00030.html
mailing-list, third-party-advisory, advisory
-
openwall.com
/lists/oss-security/2024/04/12/11
mailing-list, web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/
web
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-31629
web
Sources
- CVE List CVE-2022-31629
- NVD CVE-2022-31629
- OSV BIT-libphp-2022-31629
- OSV BIT-php-2022-31629
- OSV BIT-php-min-2022-31629
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.