CVE-2024-2756

published 29 Apr 2024 · updated 14 Nov 2026

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

7.0HighCVSS 6.5EPSS 38%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 38%. Fixed in PHP 8.1.28, PHP 8.2.18 and PHP 8.3.5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
PHP GroupPHP>=8.1.* <8.1.28, >=8.2.* <8.2.18, >=8.3.* <8.3.58.1.28, 8.2.18, 8.3.5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in PHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-2756 severity on Zeptric[![CVE-2024-2756](https://zeptric.io/badge/cve/CVE-2024-2756.svg)](https://zeptric.io/cve/CVE-2024-2756)