Skip to content
OpenAdvisories
Medium · 6.5 CVE-2024-2756 EUVD-2024-27700

__Host-/__Secure- cookie bypass due to partial CVE-2022-31629 fix

Published Apr 29, 2024 · Updated Nov 4, 2025 · Assigned by php

Description

Due to an incomplete fix to CVE-2022-31629 https://github.com/advisories/GHSA-c43m-486j-j32p , network and same-site attackers can set a standard insecure cookie in the victim's browser which is treated as a __Host- or __Secure- cookie by PHP applications.

Affected products

VendorProductAffectedFixed
PHP Group PHP 8.1.* – < 8.1.28, 8.2.* – < 8.2.18, 8.3.* – < 8.3.5 8.1.28

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 php8.2 8.2.18-1~deb12u1 DSA-5661-1
Debian 11 php7.4 7.4.33-1+deb11u5 DSA-5660-1
Debian 10 php7.3 7.3.31-1~deb10u6 DLA-3810-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS php8.3 8.3.6-0maysync1 —
Ubuntu 22.04 LTS php8.1 8.1.2-1ubuntu2.17 USN-6757-2, USN-6757-1
Ubuntu 20.04 LTS php7.4 7.4.3-4ubuntu2.22 USN-6757-2, USN-6757-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS php7.2 7.2.24-0ubuntu0.18.04.17+esm3 USN-6757-1
Ubuntu Pro 16.04 LTS php7.0 7.0.33-0ubuntu0.16.04.16+esm9 USN-6757-1
Ubuntu Pro 14.04 LTS php5 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 apcu-panel +2 5.1.21-1.module+el9.1.0.z+15477+cb86791d RHSA-2024:10950, RHSA-2024:10949
RHEL 9 php +23 8.0.30-2.el9 RHSA-2025:7315, RHSA-2024:10950, RHSA-2024:10949
RHEL 9 php-pecl-rrd 2.0.3-4.module+el9.1.0.z+15477+cb86791d RHSA-2024:10950, RHSA-2024:10949
RHEL 9 php-pecl-xdebug3 3.1.4-1.module+el9.1.0.z+15477+cb86791d RHSA-2024:10950, RHSA-2024:10949
RHEL 9 php-pecl-zip 1.20.1-1.module+el9.1.0.z+15477+cb86791d RHSA-2024:10950, RHSA-2024:10949
RHEL 8 apcu-panel +2 5.1.18-1.module+el8.10.0+22485+a3539972 RHSA-2024:10952, RHSA-2024:10951
RHEL 8 libzip +2 1.6.1-1.module+el8.10.0+22485+a3539972 RHSA-2024:10952, RHSA-2024:10951
RHEL 8 php +25 7.4.33-2.module+el8.10.0+22485+a3539972 RHSA-2024:10952, RHSA-2024:10951
RHEL 8 php-pear 1:1.10.13-1.module+el8.10.0+22485+a3539972 RHSA-2024:10952, RHSA-2024:10951
RHEL 8 php-pecl-rrd 2.0.1-1.module+el8.10.0+22485+a3539972 RHSA-2024:10952, RHSA-2024:10951
RHEL 8 php-pecl-xdebug 2.9.5-1.module+el8.10.0+22485+a3539972 RHSA-2024:10952
RHEL 8 php-pecl-xdebug3 3.2.2-2.module+el8.10.0+20798+00eaeb41 RHSA-2024:10951
RHEL 8 php-pecl-zip 1.18.2-1.module+el8.10.0+22485+a3539972 RHSA-2024:10952, RHSA-2024:10951

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 apcu-panel +2 5.1.21-1.module_el9.1.0+15+94ba28e4 ALSA-2024:10950, ALSA-2024:10949
AlmaLinux 9 php +23 8.1.30-1.module_el9.5.0+131+62ecd687 ALSA-2024:10950, ALSA-2024:10949
AlmaLinux 9 php-pecl-rrd 2.0.3-4.module_el9.1.0+15+94ba28e4 ALSA-2024:10950, ALSA-2024:10949
AlmaLinux 9 php-pecl-xdebug3 3.1.4-1.module_el9.1.0+15+94ba28e4 ALSA-2024:10950, ALSA-2024:10949
AlmaLinux 9 php-pecl-zip 1.20.1-1.module_el9.1.0+15+94ba28e4 ALSA-2024:10950, ALSA-2024:10949
AlmaLinux 8 apcu-panel +2 5.1.18-1.module_el8.6.0+2750+78feabcb ALSA-2024:10952, ALSA-2024:10951
AlmaLinux 8 libzip +1 1.6.1-1.module_el8.6.0+2750+78feabcb ALSA-2024:10952, ALSA-2024:10951
AlmaLinux 8 libzip-devel 1.6.1-1.module_el8.6.0+3239+bedf0508 ALSA-2024:10952, ALSA-2024:10951
AlmaLinux 8 php +25 7.4.33-2.module_el8.10.0+3935+28808425 ALSA-2024:10952, ALSA-2024:10951
AlmaLinux 8 php-pear 1:1.10.13-1.module_el8.10.0+3935+28808425 ALSA-2024:10952, ALSA-2024:10951
AlmaLinux 8 php-pecl-rrd 2.0.1-1.module_el8.3.0+2009+b272fdef ALSA-2024:10952, ALSA-2024:10951
AlmaLinux 8 php-pecl-xdebug 2.9.5-1.module_el8.6.0+2750+78feabcb ALSA-2024:10952
AlmaLinux 8 php-pecl-xdebug3 3.2.2-2.module_el8.10.0+3796+30ed3ef7 ALSA-2024:10951
AlmaLinux 8 php-pecl-zip 1.18.2-1.module_el8.6.0+2750+78feabcb ALSA-2024:10952, ALSA-2024:10951

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 php-pecl-apcu 5.1.21-1.module+el9.6.0+32040+1f1dedb8 RLSA-2024:10950, RLSA-2024:10949
Rocky Linux 9 php-pecl-rrd 2.0.3-4.module+el9.6.0+32040+1f1dedb8 RLSA-2024:10950, RLSA-2024:10949
Rocky Linux 9 php-pecl-xdebug3 3.1.4-1.module+el9.6.0+32040+1f1dedb8 RLSA-2024:10950, RLSA-2024:10949
Rocky Linux 9 php-pecl-zip 1.20.1-1.module+el9.6.0+32040+1f1dedb8 RLSA-2024:10950, RLSA-2024:10949
Rocky Linux 8 libzip 1.6.1-1.module+el8.10.0+1604+6558efc7 RLSA-2024:10952, RLSA-2024:10951
Rocky Linux 8 php 7.4.33-2.module+el8.10.0+1912+72767185 RLSA-2024:10952, RLSA-2024:10951
Rocky Linux 8 php-pear 1:1.10.13-1.module+el8.10.0+1604+6558efc7 RLSA-2024:10952, RLSA-2024:10951
Rocky Linux 8 php-pecl-apcu 5.1.18-1.module+el8.10.0+1604+6558efc7 RLSA-2024:10952, RLSA-2024:10951
Rocky Linux 8 php-pecl-rrd 2.0.1-1.module+el8.10.0+1604+6558efc7 RLSA-2024:10952, RLSA-2024:10951
Rocky Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.10.0+1604+6558efc7 RLSA-2024:10952
Rocky Linux 8 php-pecl-xdebug3 3.2.2-2.module+el8.10.0+1596+477f03f8 RLSA-2024:10951
Rocky Linux 8 php-pecl-zip 1.18.2-1.module+el8.10.0+1604+6558efc7 RLSA-2024:10952, RLSA-2024:10951
ReleasePackageFixed inAdvisory
SLES 15 SP5 php7 +4 7.4.33-150400.4.34.1 SUSE-SU-2024:1444-1
SLES 15 SP5 php8 +5 8.0.30-150400.4.40.1 SUSE-SU-2024:1446-1
SLES 15 SP3 php7 7.4.33-150200.3.65.1 SUSE-SU-2024:2037-1
SLES 15 SP2 php7 7.4.33-150200.3.65.1 SUSE-SU-2024:2037-1
SLES 12 SP5 php74 7.4.33-1.65.1 SUSE-SU-2024:1445-1
SLES 12 php74 7.4.33-1.65.1 SUSE-SU-2024:1445-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 php7 7.4.33-150200.3.65.1 SUSE-SU-2024:2037-1
SLES for SAP 15 SP2 php7 7.4.33-150200.3.65.1 SUSE-SU-2024:2037-1
SLE HPC 15 SP3 php7 7.4.33-150200.3.65.1 SUSE-SU-2024:2037-1
SLE HPC 15 SP2 php7 7.4.33-150200.3.65.1 SUSE-SU-2024:2037-1
SUSE Enterprise Storage 7.1 php7 7.4.33-150200.3.65.1 SUSE-SU-2024:2037-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.5 php7 +5 7.4.33-150400.4.34.1 SUSE-SU-2024:1444-1
openSUSE Leap 15.5 php8 +5 8.0.30-150400.4.40.1 SUSE-SU-2024:1446-1
ReleasePackageFixed inAdvisory
Alpine v3.24 php83 8.3.5-r0 —
Alpine v3.23 php83 8.3.5-r0 —
Alpine v3.22 php82 8.2.18-r0 —
Alpine v3.22 php83 8.3.5-r0 —
Alpine v3.21 php82 8.2.18-r0 —
Alpine v3.21 php83 8.3.5-r0 —
Alpine v3.20 php82 8.2.18-r0 —
Alpine v3.20 php83 8.3.5-r0 —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 php81 8.1.28-r0 —
Alpine v3.19 php82 8.2.18-r0 —
Alpine v3.19 php83 8.3.6-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 php8.1 +26 8.1.28-1.amzn2023.0.1 ALAS2023-2024-612
Amazon Linux 2023 php8.2 +27 8.2.18-1.amzn2023.0.1 ALAS2023-2024-624

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) php 8.1.28-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 apcu-panel +2 5.1.21-1.module+el9.1.0+20776+c1b960c0 ELSA-2024-10950, ELSA-2024-10949
Oracle Linux 9 php +23 8.0.30-2.el9 ELSA-2025-7315, ELSA-2024-10950, ELSA-2024-10949
Oracle Linux 9 php-pecl-rrd 2.0.3-4.module+el9.1.0+20776+c1b960c0 ELSA-2024-10950, ELSA-2024-10949
Oracle Linux 9 php-pecl-xdebug3 3.1.4-1.module+el9.1.0+20776+c1b960c0 ELSA-2024-10950, ELSA-2024-10949
Oracle Linux 9 php-pecl-zip 1.20.1-1.module+el9.1.0+20776+c1b960c0 ELSA-2024-10950, ELSA-2024-10949
Oracle Linux 8 apcu-panel +2 5.1.18-1.module+el8.10.0+90472+f810484b ELSA-2024-10952, ELSA-2024-10951
Oracle Linux 8 libzip +2 1.6.1-1.module+el8.10.0+90472+f810484b ELSA-2024-10952, ELSA-2024-10951
Oracle Linux 8 php +25 7.4.33-2.module+el8.10.0+90472+f810484b ELSA-2024-10952, ELSA-2024-10951
Oracle Linux 8 php-pear 1:1.10.13-1.module+el8.10.0+90472+f810484b ELSA-2024-10952, ELSA-2024-10951
Oracle Linux 8 php-pecl-rrd 2.0.1-1.module+el8.10.0+90472+f810484b ELSA-2024-10952, ELSA-2024-10951
Oracle Linux 8 php-pecl-xdebug 2.9.5-1.module+el8.10.0+90472+f810484b ELSA-2024-10952
Oracle Linux 8 php-pecl-xdebug3 3.2.2-2.module+el8.10.0+90469+8883f508 ELSA-2024-10951
Oracle Linux 8 php-pecl-zip 1.18.2-1.module+el8.10.0+90472+f810484b ELSA-2024-10952, ELSA-2024-10951

Advisories 30

References