CVE-2022-31631
🟠 MediumPHP — pdo_sqlite (PDO::quote()) · 8.0.x < 8.0.27 ; 8.1.x < 8.1.15 ; 8.2.x < 8.2.2
CVSS (Koffei note)
9.1CVSS (v3.1, CVE List)
9.1EPSS (2026-11-18)
2.189%82.79th percentile
Exploitation
Probable — public PoC (SSVC: poc, automatable: yes, total impact) ; exploit attached to the PHP bug report ; no in-the-wild exploitation found ; not in KEV
Timeline
- 12/02/2025CVE record published (CVE List)
Risk
9.1 Critical (v3.1, PHP CNA) — AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, EPSS 2.189% (CWE-74 : integer overflow in the pdo_sqlite driver's
PDO::quote(); an over-long attacker-supplied string makes the function return the data unquoted instead of failing, so remote input concatenated into an SQLite query becomes SQL injection in applications that relied on PDO::quote() for escaping) — score dispute: Red Hat rates the same bug 5.9 (AV:N/AC:H, availability only, CWE-190); the real exposure depends on whether the application actually calls PDO::quote() on SQLite with untrusted long stringsFix
Yes — 8.0.27 / 8.1.15 / 8.2.2 (bug 81740)
Official description
In PHP versions 8.0.* before 8.0.27, 8.1.* before 8.1.15, 8.2.* before 8.2.2 when using PDO::quote() function to quote user-supplied data for SQLite, supplying an overly long string may cause the driver to incorrectly quote the data, which may further lead to SQL injection vulnerabilities.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CWE-74