URL validation bypass via skipped user-info checks
Published Jun 9, 2024 · Updated Nov 3, 2025
URL validation bypass in affected PHP releases allows remote attackers to submit malformed HTTP URLs containing IPv6 hosts. An early success return in php_filter_validate_url skips is_userinfo_valid checks after accepting a bracketed IPv6 host, so invalid username or password characters pass FILTER_VALIDATE_URL. Exposure requires downstream code to validate attacker-controlled URLs and trust the accepted result, allowing malformed user information to influence later URL parsing.
Summary
What happened
URL validation bypass in affected PHP releases allows remote attackers to submit malformed HTTP URLs containing IPv6 hosts. An early success return in php_filter_validate_url skips is_userinfo_valid checks after accepting a bracketed IPv6 host, so invalid username or password characters pass FILTER_VALIDATE_URL. Exposure requires downstream code to validate attacker-controlled URLs and trust the accepted result, allowing malformed user information to influence later URL parsing.
The record
- CVE
- CVE-2024-5458
- Published
- Jun 9, 2024
- Updated
- Nov 3, 2025
- Vendor
- The PHP Group
- Product
- PHP
- Classifications
- CWE-345
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 9, 2024CVE publishedPublication date reported by the CVE source.
- Nov 3, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=7.3.27 <=7.3.33
- Affected versionversion=7.4.15 <=7.4.33
- Affected versionversion=8.0.2 <=8.0.30
- Affected versionversion=8.1.0 <8.1.29
- Affected versionversion=8.1.* <8.1.29
- Affected versionversion=8.2.0 <8.2.20
- Affected versionversion=8.2.* <8.2.20
- Affected versionversion=8.3.0 <8.3.8
- Affected versionversion=8.3.* <8.3.8
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream filter_var IPv6 proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo