Ad

CVE-2022-31631

CRITICAL CVSS 3.1: 9.1 EPSS 0.68%
Updated Jul 02, 2025
PHP
Parameter Value
CVSS 9.1 (CRITICAL)
Affected Versions 3.39.2 — 8.2.2
Fixed In 8.0.27
Type CWE-74 (Injection)
Vendor PHP
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
None
No disruption

CVSS Vector v3.1

Weakness Type (CWE)

Vulnerable Products 4

Configuration From (including) Up to (excluding)
Php Php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
8.0.0 8.0.27
Php Php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
8.1.0 8.1.15
Php Php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
8.2.0 8.2.2
Sqlite Sqlite
cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*
3.39.2