Skip to main content
VulnerabilityPublished Updated

CVE-2024-5458: PHP · CWE-345

Affects PHPSource CVE Database V5

0

Not known to be exploited · 12% EPSS · CVSS 5.3 Medium · fixed in 8.4.0 : update PHP when convenient.

Data as of 26 Oct 2026, 09:15 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
12.1% chance of exploitation in 30 days – higher than 96% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 8.4.0, 8.3.0, 8.2.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 12 Jun 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade PHP to 8.4.0, 8.3.0 or 8.2.0.

Affected software

ProductAffectedFixed in
PHP Group PHPAffected
  • >=8.1.0 <8.2.0
  • >=8.2.0 <8.3.0
  • >=8.3.0 <8.4.0
Fixed in
  • 8.2.0
  • 8.3.0
  • 8.4.0

AI-suggested

1. Upgrade PHP to versions 8.1.29 or later, 8.2.20 or later, or 8.3.8 or later as soon as possible to incorporate the official fix. 2. Review all application code using filter_var with FILTER_VALIDATE_URL to identify reliance on user info components of URLs and implement additional validation or sanitization to reject malformed user info explicitly. 3. Implement strict input validation and sanitization at the application layer, especially for URLs accepted from untrusted sources, to prevent malformed URLs from entering business logic. 4. Use web application firewalls (WAFs) with custom rules to detect and block suspicious URL patterns that exploit this validation flaw. 5. Monitor application logs for unusual URL parsing errors or anomalies that could indicate exploitation attempts. 6. Educate developers about the limitations of built-in validation functions and encourage defense-in-depth strategies for input validation. 7. Conduct security testing and code audits focusing on URL handling and validation logic to identify and remediate similar issues proactively.

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.

References

Community reviews

Loading reviews…