All vulnerabilities

Servers and applications

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

Severity
Critical 9.1
Published
12 Feb 2025
Last changed
17 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
8.0.27, 8.1.15, 8.2.2
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 8.0.0 before 8.0.27
  • From 8.1.0 before 8.1.15
  • From 8.2.0 before 8.2.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-31631
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-31631