CVE-2022-31631
SQLite PDO Quote Function SQL Injection Vulnerability in PHP
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.
INFO
Published Date :
Feb. 12, 2025, 10:15 p.m.
Last Modified :
Feb. 13, 2025, 4:15 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.2
Exploitability Score :
3.9
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-31631
.
URL | Resource |
---|---|
https://bugs.php.net/bug.php?id=81740 | |
https://security.netapp.com/advisory/ntap-20230223-0007/ | |
https://bugs.php.net/bug.php?id=81740 |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-31631
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-31631
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Feb. 13, 2025
Action Type Old Value New Value Added Reference https://bugs.php.net/bug.php?id=81740 -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Feb. 12, 2025
Action Type Old Value New Value Added Reference https://security.netapp.com/advisory/ntap-20230223-0007/ -
New CVE Received by [email protected]
Feb. 12, 2025
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N Added CWE CWE-74 Added Reference https://bugs.php.net/bug.php?id=81740
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-31631
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-31631
weaknesses.