CVE-2024-5458
Last modified
CVE-2024-5458 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. 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.. EPSS estimates a 12.12% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | >= 7.3.27, <= 7.3.33 |
| Php | Php | >= 7.4.15, <= 7.4.33 |
| Php | Php | >= 8.0.2, <= 8.0.30 |
| Php | Php | >= 8.1.0, < 8.1.29 |
| Php | Php | >= 8.2.0, < 8.2.20 |
| Php | Php | >= 8.3.0, < 8.3.8 |
| Fedoraproject | Fedora | 40 |
References
- http://www.openwall.com/lists/oss-security/2024/06/07/1Mailing List, Third Party Advisory
- https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27wExploit, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2024/06/07/1Mailing List, Third Party Advisory
- https://github.com/php/php-src/security/advisories/GHSA-w8qr-v226-r27wExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-5458?
How severe is CVE-2024-5458?
How do I fix CVE-2024-5458?
Are you affected by CVE-2024-5458?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
