CVE-2022-31631

Critical

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.

SeverityCritical
CVSS9.1
Exploit probability—
ProductPhp
PublishedFeb 12, 2025
First seenFeb 12, 2025
Weakness typeCWE-74Injection

How to fix

Update
  • php php8.0.27, 8.1.15, 8.2.2 or later

Affected products

ProductAffected versionsFixed in
php php8.0.0 ≤ v < 8.0.27, 8.1.0 ≤ v < 8.1.15, 8.2.0 ≤ v < 8.2.28.0.27, 8.1.15, 8.2.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.