Back to CVE records
Critical 9.1Published Feb 12, 2025

CVE-2022-31631PDO::quote() may return unquoted string

Updated under an hour ago ()

Does this affect you?

It affects PHP Group PHP and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

Free: a daily email for up to 3 products and the weekly digest. No card, no password. By continuing you agree to the Terms and Privacy Policy.

CVSS
9.1 CRITICAL (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness (CWE)
CWE-74
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
php
NVD analysis
Analyzed
Record last updated
Feb 13, 2025
First seen by InfoSec Signals
Nov 1, 2026

Affected products

Affected products
PHP Group PHP
php_group:php (from the name)
from 8.0.x before 8.0.27; from 8.1.x before 8.1.15; from 8.2.x before 8.2.2
CNA record
php php
php:php
from 8.0.0 before 8.0.27; from 8.1.0 before 8.1.15; from 8.2.0 before 8.2.2
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Essential cookies only, unless you allow a Google ads cookie. See our .