PT-2022-3056 · Php+10 · Php+10
Charles Fol
·
Published
2022-05-16
·
Updated
2025-09-29
·
CVE-2022-31626
CVSS v2.0
10
High
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
PHP versions 7.4.x through 7.4.29
PHP versions 8.0.x through 8.0.19
PHP versions 8.1.x through 8.1.6
Description
The issue is related to a buffer overflow vulnerability in the mysqlnd/pdo function of the PHP interpreter, specifically in the mysqlnd wireprotocol.c file. This vulnerability can be exploited by a remote attacker to execute arbitrary code. The vulnerability occurs when a third-party supplier is allowed to provide the host to connect to and the password for the connection, and an excessively long password can trigger the buffer overflow.
Recommendations
For PHP versions 7.4.x through 7.4.29, update to version 7.4.30 or later.
For PHP versions 8.0.x through 8.0.19, update to version 8.0.20 or later.
For PHP versions 8.1.x through 8.1.6, update to version 8.1.7 or later.
Exploit
Fix
RCE
Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Astra Linux
Centos
Linuxmint
Php
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu