CVE-2022-31631
Last modified
CVE-2022-31631 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. 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.. EPSS estimates a 2.15% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | >= 8.0.0, < 8.0.27 |
| Php | Php | >= 8.1.0, < 8.1.15 |
| Php | Php | >= 8.2.0, < 8.2.2 |
References
- https://bugs.php.net/bug.php?id=81740Vendor Advisory
- https://security.netapp.com/advisory/ntap-20230223-0007/Third Party Advisory
- https://bugs.php.net/bug.php?id=81740Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2022-31631?
How severe is CVE-2022-31631?
How do I fix CVE-2022-31631?
Are you affected by CVE-2022-31631?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
