Bug 2291252 (CVE-2024-5458) - CVE-2024-5458 php: Filter bypass in filter_var (FILTER_VALIDATE_URL)
Summary: CVE-2024-5458 php: Filter bypass in filter_var (FILTER_VALIDATE_URL)
Keywords:
Status: NEW
Alias: CVE-2024-5458
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: 2291253
Blocks: 2291254
TreeView+ depends on / blocked
 
Reported: 2024-06-11 04:51 UTC by Avinash Hanwate
Modified: 2025-05-13 10:35 UTC (History)
1 user (show)

Fixed In Version: php 8.1.29, php 8.2.20, php 8.3.8
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:48 UTC
Red Hat Product Errata RHSA-2024:10949 0 None None None 2024-12-11 11:45:05 UTC
Red Hat Product Errata RHSA-2024:10950 0 None None None 2024-12-11 11:44:47 UTC
Red Hat Product Errata RHSA-2024:10951 0 None None None 2024-12-11 11:45:26 UTC
Red Hat Product Errata RHSA-2024:10952 0 None None None 2024-12-11 11:44:23 UTC
Red Hat Product Errata RHSA-2025:7315 0 None None None 2025-05-13 10:35:37 UTC

Description Avinash Hanwate 2024-06-11 04:51:05 UTC
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, due to a code logic error, filtering functions such as filter_var when validating URLs (FILTER_VALIDATE_URL) for certain types of URLs the function will result in invalid user information (username + password part of URLs) being treated as valid user information. This may lead to the downstream code accepting invalid URLs as valid and parsing them incorrectly.

http://www.openwall.com/lists/oss-security/2024/06/07/1
https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27w

Comment 1 Avinash Hanwate 2024-06-11 05:00:09 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 2291253]

Comment 3 errata-xmlrpc 2024-12-11 11:44:22 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 4 errata-xmlrpc 2024-12-11 11:44:46 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 5 errata-xmlrpc 2024-12-11 11:45:04 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 6 errata-xmlrpc 2024-12-11 11:45:24 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

Comment 8 errata-xmlrpc 2025-05-13 10:35:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2025:7315 https://access.redhat.com/errata/RHSA-2025:7315


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