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 filtervar when validating URLsĀ (FILTERVALIDATE_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.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5458.json",
"cna_assigner": "php"
}{
"extracted_events": [
{
"introduced": "7.3.27"
},
{
"last_affected": "7.3.33"
},
{
"introduced": "7.4.15"
},
{
"last_affected": "7.4.33"
},
{
"introduced": "8.0.2"
},
{
"last_affected": "8.0.30"
},
{
"introduced": "8.1.0"
},
{
"fixed": "8.1.29"
},
{
"introduced": "8.2.0"
},
{
"fixed": "8.2.20"
},
{
"introduced": "8.3.0"
},
{
"fixed": "8.3.8"
}
],
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"source": "CPE_RANGE"
}