CWE
20
Advisory Published
CVE Published
Updated

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

First published: Thu Apr 11 2024(Updated: )

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.

Credit: security@php.net security@php.net

Affected SoftwareAffected VersionHow to fix
ubuntu/php7.0<7.0.33-0ubuntu0.16.04.16+
7.0.33-0ubuntu0.16.04.16+
ubuntu/php7.2<7.2.24-0ubuntu0.18.04.17+
7.2.24-0ubuntu0.18.04.17+
ubuntu/php7.4<7.4.3-4ubuntu2.22
7.4.3-4ubuntu2.22
ubuntu/php8.1<8.1.2-1ubuntu2.17
8.1.2-1ubuntu2.17
ubuntu/php8.1<8.1.28
8.1.28
ubuntu/php8.2<8.2.10-2ubuntu2.1
8.2.10-2ubuntu2.1
ubuntu/php8.2<8.2.18
8.2.18
ubuntu/php8.3<8.3.6-0
8.3.6-0
ubuntu/php8.3<8.3.6
8.3.6
debian/php7.4
7.4.33-1+deb11u5
debian/php8.2
8.2.20-1~deb12u1
8.2.23-1
redhat/php<8.1.28
8.1.28
redhat/php<8.2.18
8.2.18
redhat/php<8.3.6
8.3.6
PHP<8.1.28
8.1.28

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2024-2756?

    CVE-2024-2756 has been classified as a high severity vulnerability due to the potential for attackers to manipulate cookie handling in PHP applications.

  • How do I fix CVE-2024-2756?

    To fix CVE-2024-2756, upgrade PHP to the latest available version that addresses this vulnerability, such as 8.1.28 or higher.

  • What versions of PHP are affected by CVE-2024-2756?

    CVE-2024-2756 affects multiple PHP versions including 7.0.x, 7.2.x, 7.4.x, 8.1.x, and 8.2.x prior to the respective patched releases.

  • Is CVE-2024-2756 a result of a previous vulnerability?

    Yes, CVE-2024-2756 is an incomplete fix to the previously reported CVE-2022-31629.

  • Can CVE-2024-2756 be exploited remotely?

    Yes, CVE-2024-2756 can potentially be exploited by remote attackers, making it a significant security concern.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203