CVE-2022-31631

CRITICALCVSS 9.1/10EPSS 2.15%

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
9.1/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

EPSS Probability
2.15%

79.9th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PhpPhp>= 8.0.0, < 8.0.27
PhpPhp>= 8.1.0, < 8.1.15
PhpPhp>= 8.2.0, < 8.2.2

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2022-31631?
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.
How severe is CVE-2022-31631?
CVE-2022-31631 has a CVSS score of 9.1/10 (CRITICAL severity). The EPSS model estimates a 2.15% probability of exploitation in the next 30 days.
How do I fix CVE-2022-31631?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2022-31631?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST