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: 2024-06-13 15:41 UTC (History)
0 users

Fixed In Version: php 8.1.29, php 8.2.20, php 8.3.8
Doc Type: ---
Doc Text:
A flaw was found in PHP. An early return in the filter_var (FILTER_VALIDATE_URL) function results in invalid user information (username + password part of URLs) being treated as valid user information. This issue impacts users who expect only completely valid URLs to be returned by filter_var (FILTER_VALIDATE_URL). As this function is used to validate user-supplied strings, this issue exposes raw user input often.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

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]


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