CVE & CISA-KEV Catalog

CVE-2024-5458

MEDIUMEPSS 96th pctl
5.3
CVSS v3
NVD

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.

How to fix

Remediation Available
php8.1Amazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-bcmathAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-bcmath-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-cliAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-cli-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-commonAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-common-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-dbaAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-dba-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-dbgAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-dbg-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-debugsourceAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-develAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-embeddedAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-embedded-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-enchantAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-enchant-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-ffiAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-ffi-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-fpmAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-fpm-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-gdAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-gd-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-gmpAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-gmp-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-intlAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-intl-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-ldapAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1
php8.1-ldap-debuginfoAmazon
Fixed in:0:8.1.29-1.amzn2023.0.1
Fixed in:0:8.1.29-1.amzn2023.0.1

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Exploit Intelligence

12.12%probability of exploitation in 30 days
96thpercentile

Very high risk: more likely to be exploited than 96% of all known CVEs.

References

Related Vulnerabilities

Other CWE-345 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-38831High7.898%KEV + RansomFix
CVE-2016-4553High8.680%-Fix
CVE-2016-4554High8.639%-Fix
CVE-2023-35719Medium6.826%--
CVE-2022-26871Critical9.820%KEV-
CVE-2014-4936High9.317%--

Common questions

How do I fix CVE-2024-5458?

Published advisories record a fix for 281 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2024-5458 being actively exploited?

Not that we know of. CVE-2024-5458 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 12.1% is the estimated probability that it will be exploited in the next 30 days. That is higher than 96% of all scored CVEs.

How severe is CVE-2024-5458?

CVE-2024-5458 has a CVSS v3 base score of 5.3, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2024-5458 affect?

Published advisories record a fix for php8.1 (Amazon), php8.1-bcmath (Amazon), php8.1-bcmath-debuginfo (Amazon), php8.1-cli (Amazon), and 277 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2024-5458
CVE-2024-5458 severity badge

Markdown

[![CVE-2024-5458](https://tridentstack.com/cve/badge/CVE-2024-5458.svg)](https://tridentstack.com/cve/CVE-2024-5458)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-5458"><img src="https://tridentstack.com/cve/badge/CVE-2024-5458.svg" alt="CVE-2024-5458"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.