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.
Conclusion & alert: CVE-2022-31631 is rated Moderate Risk (60.3/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 0.57%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-13 | 0.68% | 0.57% | -0.11% |
| 2 | 2026-02-20 | 0.80% | 0.68% | -0.12% |
| 3 | 2026-01-15 | — | 0.80% | — |
Full EPSS history (21 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 9.1 | 3.1 | CRITICAL |
|
3.9 | 5.2 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2022-31631: 2 source package rows (php81, php82); 10 state rows across 7 repos (3.17-community, 3.18-community, 3.19-community, 3.20-community, 3.21-community, 3.22-community, edge-community); fixed 10, open 0. | https://security.alpinelinux.org/vuln/CVE-2022-31631 |
debian
|
not yet assigned | CVE-2022-31631 not yet assigned priority: Debian including 2 source packages (php7.4, php8.2), 2 status rows across 2 suites (bookworm, bullseye): resolved 2. | https://security-tracker.debian.org/tracker/CVE-2022-31631 |
gentoo
|
high | CVE-2022-31631: 1 GLSA(s) (202408-32), 1 atom(s) (dev-lang/php); latest impact high. | https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-31631 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2022-31631 |
suse
|
medium | CVE-2022-31631 severity moderate: SUSE including 499 source package names (8-4.1:apache2-mod_php8-8.0.27-150400.4.23.1, 8-4.1:php8-8.0.27-150400.4.23.1, …), 1642 product×package rows across 40 product lines (Container bci/php, Container bci/php-apache, … (40 product lines)): Fixed 1642. | https://www.suse.com/security/cve/CVE-2022-31631/ |
ubuntu
|
medium | CVE-2022-31631 medium priority: Ubuntu including 5 source packages (php5, php7.0, php7.2, php7.4, php8.1), 41 status rows across 13 suites (bionic, focal, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 29, released 7, needs-triage 4, needed 1. | https://ubuntu.com/security/CVE-2022-31631 |
| URL | Tags |
|---|---|
| https://bugs.php.net/bug.php?id=81740 | Vendor Advisory |
| https://security.netapp.com/advisory/ntap-20230223-0007/ | Third Party Advisory |