Advisory

UBUNTU-CVE-2022-31626

Also known as: CVE-2022-31626

Summary

The record has no summary.

Details

In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when pdo_mysql extension with mysqlnd driver, if the third party is allowed to supply host to connect to and the password for the connection, password of excessive length can trigger a buffer overflow in PHP, which can lead to a remote code execution vulnerability.

Severity

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

Dates

Published
2022-06-13 00:00 UTC
Modified
2026-10-21 23:00 UTC

Affected packages and fixes

php7.2

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 7.2.24-0ubuntu0.18.04.12 (ecosystem)

Fixed versions

7.2.24-0ubuntu0.18.04.12

Fix

  • Fixed version 7.2.24-0ubuntu0.18.04.12
    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.

php7.4

Debian packages (deb) · Ubuntu 20.04

Affected

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

Fixed versions

7.4.3-4ubuntu2.12

Fix

  • Fixed version 7.4.3-4ubuntu2.12
    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.1 (ecosystem)

Fixed versions

8.1.2-1ubuntu2.1

Fix

  • Fixed version 8.1.2-1ubuntu2.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