Skip to content
CVE PROGRAM SOURCE RECORD9.1 Critical

CVE-2022-31631

PDO::quote() may return unquoted string

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

PHP Group PHP

Default version status: affected

  • 8.0.x to < 8.0.27affected
  • 8.1.x to < 8.1.15affected
  • 8.2.x to < 8.2.2affected

References