Bug 2275058 (CVE-2024-2756) - CVE-2024-2756 php: host/secure cookie bypass due to partial CVE-2022-31629 fix
Summary: CVE-2024-2756 php: host/secure cookie bypass due to partial CVE-2022-31629 fix
Keywords:
Status: NEW
Alias: CVE-2024-2756
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2275059
Blocks: 2275070
TreeView+ depends on / blocked
 
Reported: 2024-04-15 07:29 UTC by ybuenos
Modified: 2024-12-12 22:36 UTC (History)
0 users

Fixed In Version: php 8.1.28, php 8.2.18, php 8.3.6
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2024:11026 0 None None None 2024-12-12 22:36:49 UTC
Red Hat Product Errata RHSA-2024:10949 0 None None None 2024-12-11 11:45:03 UTC
Red Hat Product Errata RHSA-2024:10950 0 None None None 2024-12-11 11:44:45 UTC
Red Hat Product Errata RHSA-2024:10951 0 None None None 2024-12-11 11:45:22 UTC
Red Hat Product Errata RHSA-2024:10952 0 None None None 2024-12-11 11:44:21 UTC

Description ybuenos 2024-04-15 07:29:30 UTC
Due to an incomplete fix to CVE-2022-31629, 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.

The vulnerability is identical to one previously described in https://bugs.php.net/bug.php?id=81727. Unfortunatly, since CVE-2022-31629 got only partially fixed in PHP >8.1.11, cookies starting with _[Host- are parsed by PHP applications as __Host-.

Comment 1 ybuenos 2024-04-15 07:29:43 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 2275059]

Comment 4 errata-xmlrpc 2024-12-11 11:44:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:10952 https://access.redhat.com/errata/RHSA-2024:10952

Comment 5 errata-xmlrpc 2024-12-11 11:44:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:10950 https://access.redhat.com/errata/RHSA-2024:10950

Comment 6 errata-xmlrpc 2024-12-11 11:45:02 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:10949 https://access.redhat.com/errata/RHSA-2024:10949

Comment 7 errata-xmlrpc 2024-12-11 11:45:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2024:10951 https://access.redhat.com/errata/RHSA-2024:10951


Note You need to log in before you can comment on or make changes to this bug.