Live threats

All CVEs / Php

CVE-2022-31631Php

Critical 9.1 No auth needed

Priority
70
CVSS 3.1
9.1
EPSS
0.9%
probability of exploitation in 30 days · percentile 59
Auth required
No
Published
Feb 12, 2025
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-74
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≥ 8.0.0 < 8.0.27
phpphp≥ 8.1.0 < 8.1.15
phpphp≥ 8.2.0 < 8.2.2

Official sources

References

Links published by the sources. Open them with care.