Vulnerability record · CVE-2022-31631 · published 12 February 2025
CVE-2022-31631: Php injection vulnerability
Php · Php
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.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://bugs.php.net/bug.php?id=81740 | Vendor Advisory |
| https://security.netapp.com/advisory/ntap-20230223-0007/ | Third Party Advisory |
| https://bugs.php.net/bug.php?id=81740 | Vendor Advisory |
Track CVE-2022-31631 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2022-31631), CISA KEV, FIRST EPSS (scores of 2026-09-29). This page is refreshed as NVD updates the record.