2084AI Security Observatory

CVE

CVE-2022-31631

CVE-2022-31631CRIT 9.1EPSS 83%

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

All PHP vulnerabilities →

  • ≥ 8.2.0, < 8.2.2Fixed in 8.2.2
  • ≥ 8.1.0, < 8.1.15Fixed in 8.1.15
  • ≥ 8.0.0, < 8.0.27Fixed in 8.0.27

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Advisories and patches

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.