CVE-2022-31631 - CVE House
Back to Database
Status published Critical CVE-2022-31631

PDO::quote() may return unquoted string

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2022-31631

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

Affected Software

PHP
Vulnerable Versions:
8.0.x, 8.1.x, 8.2.x

Timeline

Official Publish: February 12th, 2025
Last Modified: February 13th, 2025
Added to House: July 21st, 2026

CVSS Vectors

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

Weaknesses (CWE)