Vulnerability in PHP

CVE-2022-31631

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

EPSS exploit prediction

EPSS: 0.022 (81.6th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 82nd percentile — 81.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2022-31631: held from 0.022 to 0.022.

EPSS over last 30 days · oldest: 0.022 · newest: 0.022 · change: 0.000

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2022-31631?
CVE-2022-31631 is a critical-severity vulnerability in PHP, classified under Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection). CVSS score: 9.1/10. Published 2025-02-12.
How severe is CVE-2022-31631?
Critical severity. CVSS v3 base score is 9.1 out of 10.