Vulnerability · Published Sep 28, 2022 · Assigned by php

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

Medium 6.5

In plain English

A medium-severity improper input validation in PHP from PHP Group. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 49.6% (higher than 99% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)49.6%top 1.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8apcu-panel5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2023:2903
AlmaLinux:8apcu-panel5.1.18-1.module_el8.6.0+2750+78feabcbALSA-2024:10952
AlmaLinux:8apcu-panel5.1.20-1.module_el8.6.0+2739+efabdb8fALSA-2023:0848
AlmaLinux:8apcu-panel5.1.23-1.module_el8.10.0+3796+30ed3ef7ALSA-2024:10951
AlmaLinux:9apcu-panel5.1.21-1.module_el9.1.0+15+94ba28e4ALSA-2023:2417
AlmaLinux:9apcu-panel5.1.23-1.module_el9.4.0+65+49ff6472ALSA-2024:10949
AlmaLinux:9apcu-panel5.1.21-1.module_el9.1.0+15+94ba28e4ALSA-2024:10950
AlmaLinux:8libzip1.7.3-1.module_el8.6.0+2739+efabdb8fALSA-2023:0848
AlmaLinux:8libzip1.7.3-1.module_el8.10.0+3796+30ed3ef7ALSA-2024:10951
AlmaLinux:8libzip1.7.3-1.module_el8.6.0+3061+6878dd1bALSA-2024:10951
AlmaLinux:8libzip1.7.3-1.module_el8.6.0+2739+efabdb8fALSA-2024:10951
AlmaLinux:8libzip1.6.1-1.module_el8.6.0+3239+bedf0508ALSA-2023:2903
AlmaLinux:8libzip1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2023:2903
AlmaLinux:8libzip1.6.1-1.module_el8.6.0+3239+bedf0508ALSA-2024:10952
AlmaLinux:8libzip1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2024:10952
AlmaLinux:8libzip1.6.1-1.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8libzip1.7.3-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux:8libzip-devel1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2023:2903
AlmaLinux:8libzip-devel1.7.3-1.module_el8.6.0+2739+efabdb8fALSA-2023:0848
AlmaLinux:8libzip-devel1.7.3-1.module_el8.6.0+3061+6878dd1bALSA-2024:10951
AlmaLinux:8libzip-devel1.7.3-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux:8libzip-devel1.7.3-1.module_el8.10.0+3796+30ed3ef7ALSA-2024:10951
AlmaLinux:8libzip-devel1.6.1-1.module_el8.6.0+3239+bedf0508ALSA-2024:10952
AlmaLinux:8libzip-devel1.6.1-1.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8libzip-devel1.6.1-1.module_el8.6.0+3239+bedf0508ALSA-2023:2903
AlmaLinux:8libzip-tools1.7.3-1.module_el8.6.0+3061+6878dd1bALSA-2023:0848
AlmaLinux:8libzip-tools1.6.1-1.module_el8.6.0+3239+bedf0508ALSA-2023:2903
AlmaLinux:8libzip-tools1.7.3-1.module_el8.6.0+2739+efabdb8fALSA-2024:10951
AlmaLinux:8libzip-tools1.6.1-1.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8libzip-tools1.7.3-1.module_el8.6.0+2739+efabdb8fALSA-2023:0848
AlmaLinux:8libzip-tools1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2023:2903
AlmaLinux:8libzip-tools1.6.1-1.module_el8.6.0+2750+78feabcbALSA-2024:10952
AlmaLinux:8libzip-tools1.6.1-1.module_el8.6.0+3239+bedf0508ALSA-2024:10952
AlmaLinux:8libzip-tools1.7.3-1.module_el8.10.0+3796+30ed3ef7ALSA-2024:10951
AlmaLinux:8php7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:9php8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:8php-bcmath8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-bcmath8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-bcmath7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-bcmath7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:9php-bcmath8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-bcmath8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-bcmath8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-bcmath8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:8php-cli7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-cli7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-cli8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-cli8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:9php-cli8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-cli8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-cli8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-cli8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:8php-common8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-common7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-common7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-common8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:9php-common8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-common8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-common8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-common8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:8php-dba7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-dba7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-dba8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-dba8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:9php-dba8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-dba8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-dba8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-dba8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:8php-dbg7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-dbg8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-dbg8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-dbg7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:9php-dbg8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-dbg8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-dbg8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-dbg8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:8php-devel7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-devel7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-devel8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-devel8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:9php-devel8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-devel8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-devel8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-devel8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:8php-embedded7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-embedded8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-embedded8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-embedded7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:9php-embedded8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-embedded8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-embedded8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-embedded8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:8php-enchant7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-enchant8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-enchant7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-enchant8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:9php-enchant8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-enchant8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-enchant8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-enchant8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:8php-ffi7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-ffi7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-ffi8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-ffi8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:9php-ffi8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-ffi8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-ffi8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-ffi8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:8php-fpm8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-fpm7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-fpm8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-fpm7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:9php-fpm8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-fpm8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-fpm8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-fpm8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:8php-gd8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-gd8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-gd7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-gd7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:9php-gd8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-gd8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-gd8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-gd8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:8php-gmp8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-gmp8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-gmp7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-gmp7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:9php-gmp8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-gmp8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-gmp8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-gmp8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:8php-intl8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-intl7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-intl7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-intl8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:9php-intl8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-intl8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-intl8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-intl8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:8php-json7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-json7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-ldap7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-ldap8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-ldap8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-ldap7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:9php-ldap8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-ldap8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-ldap8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-ldap8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:8php-mbstring7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-mbstring8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-mbstring7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-mbstring8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:9php-mbstring8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-mbstring8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-mbstring8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-mbstring8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:8php-mysqlnd8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-mysqlnd7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-mysqlnd7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-mysqlnd8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:9php-mysqlnd8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-mysqlnd8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-mysqlnd8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-mysqlnd8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:8php-odbc7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-odbc8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-odbc8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-odbc7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:9php-odbc8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-odbc8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-odbc8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-odbc8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:8php-opcache7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-opcache8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:8php-opcache7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-opcache8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:9php-opcache8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-opcache8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:9php-opcache8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-opcache8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:8php-pdo7.4.33-1.module_el8.8.0+3477+f828cbb0ALSA-2023:2903
AlmaLinux:8php-pdo7.4.33-2.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-pdo8.2.25-1.module_el8.10.0+3936+14b35499ALSA-2024:10951
AlmaLinux:8php-pdo8.0.27-1.module_el8.7.0+3401+dfb61c00ALSA-2023:0848
AlmaLinux:9php-pdo8.2.25-1.module_el9.5.0+132+adb0ae7aALSA-2024:10949
AlmaLinux:9php-pdo8.0.27-1.el9_1ALSA-2023:0965
AlmaLinux:9php-pdo8.1.14-1.module_el9.2.0+24+ca6bd7c2ALSA-2023:2417
AlmaLinux:9php-pdo8.1.30-1.module_el9.5.0+131+62ecd687ALSA-2024:10950
AlmaLinux:8php-pear1:1.10.13-1.module_el8.10.0+3935+28808425ALSA-2024:10952
AlmaLinux:8php-pear1:1.10.14-1.module_el8.10.0+3796+30ed3ef7ALSA-2024:10951
AlmaLinux:8php-pear1:1.10.13-1.module_el8.6.0+3268+b150a051ALSA-2023:2903
AlmaLinux:8php-pear1:1.10.13-1.module_el8.6.0+2739+efabdb8fALSA-2023:0848

Affected products (as reported)

VendorProductVersions
PHP Group PHP 7.4.X – before 7.4.318.0.X – before 8.0.248.1.X – before 8.1.11

Weakness: CWE-20, CWE-1284 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

References