Advisory

UBUNTU-CVE-2024-5458

Also known as: CVE-2024-5458

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Dates

Published
2024-06-11 00:00 UTC
Modified
2026-10-21 23:00 UTC

Affected packages and fixes

php7.4

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 7.4.3-4ubuntu2.23 (ecosystem)

Fixed versions

7.4.3-4ubuntu2.23

Fix

  • Fixed version 7.4.3-4ubuntu2.23
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

php8.1

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 8.1.2-1ubuntu2.18 (ecosystem)

Fixed versions

8.1.2-1ubuntu2.18

Fix

  • Fixed version 8.1.2-1ubuntu2.18
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

php8.3

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 8.3.6-0ubuntu0.24.04.1 (ecosystem)

Fixed versions

8.3.6-0ubuntu0.24.04.1

Fix

  • Fixed version 8.3.6-0ubuntu0.24.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences