Skip to content
9.1 Critical

CVE-2022-31631 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…

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 and versions

Product Affected versions Fixed in
PHP 8.2 8.2.x → < 8.2.2 8.2.2
PHP 8.1 8.1.x → < 8.1.15 8.1.15
PHP 8.0 8.0.x → < 8.0.27 8.0.27

References

Timeline

  1. Published
  2. Last modified
The 103 CVEs of PHP →
Track this CVE