Koffei

CVE-2022-31626

🟡 Low

PHP (pdo_mysql / mysqlnd) (scanner: php7.0-cli,php7.0-opcache,php7.0-json,php7.0-curl,php7.0-common,php7.0-readline) · 7.4.x <7.4.30; 8.0.x <8.0.20; 8.1.x <8.1.7

CVSS (Koffei note)
7.5
CVSS (v3.1, CVE List)
7.5
EPSS (2026-11-18)
58.123%
99.11th percentile

Exploitation

Not confirmed (not in KEV; no SSVC)

Timeline

  1. 16/06/2022CVE record published (CVE List)

Risk

7.5 High (v3.1), EPSS 58.123% (CWE-120 : Excessively long password with pdo_mysql/mysqlnd (when attacker controls host and password) triggers a buffer overflow, potentially RCE.)

Fix

Yes — 7.4.30 / 8.0.20 / 8.1.7 (advisory)

Official description

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.

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

CWE-120