Ubuntu CVE Tracker
UBUNTU-CVE-2022-31626
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | php5 | All versions, no fix listed |
| Ubuntu:Pro:16.04:LTS | php7.0 | All versions before 7.0.33-0ubuntu0.16.04.16+esm4 (fixed in 7.0.33-0ubuntu0.16.04.16+esm4) |
| Ubuntu:18.04:LTS | php7.2 | All versions before 7.2.24-0ubuntu0.18.04.12 (fixed in 7.2.24-0ubuntu0.18.04.12) |
| Ubuntu:20.04:LTS | php7.4 | All versions before 7.4.3-4ubuntu2.12 (fixed in 7.4.3-4ubuntu2.12) |
| Ubuntu:22.04:LTS | php8.1 | All versions before 8.1.2-1ubuntu2.1 (fixed in 8.1.2-1ubuntu2.1) |