BlogSafe.org

PHP CVEs

Vulnerabilities in the PHP language itself, and which PHP versions they affect.

← Back to CVE list

CVE-2022-31631

CRITICAL 9.1 CVSS 3.1
Published
February 12, 2025
Last modified
June 17, 2026
NVD status
Analyzed
Reported by
security@php.net
Weakness
CWE-74
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

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

  • PHP — From 8.0.0 (including) to 8.0.27 (excluding)
  • PHP — From 8.1.0 (including) to 8.1.15 (excluding)
  • PHP — From 8.2.0 (including) to 8.2.2 (excluding)

References