CVE-2022-31631
CSIRTS triage
- What
- PDO::quote() may return an unquoted string, potentially leading to SQL injection.
- Who is affected
- PHP applications using PDO::quote() for query construction are affected.
- Urgency
- Critical severity with CVSS 9.1; this is a fundamental flaw in a security-critical function that can lead to SQL injection attacks.
- Action
- Update PHP to a patched version that correctly implements PDO::quote() and review all code relying on this function.
AI-assisted analysis generated from the source advisory — verify against the original.
⚡ Watch CVE-2022-31631
Get an email if CVE-2022-31631 is added to CISA KEV, gains public exploit code, or a new advisory cites it — max one per day, one-click unsubscribe.
Exploitation outlook
- Moderate exploitation risk2.2% 30-day exploitation probability. Patch within normal cadence, watch for KEV listing. Riskier than 81% of all EPSS-scored CVEs.
Advisory coverage (1)
- criticalCVE-2022-31631: PDO::quote() may return unquoted stringmsrc · 2026-08-06
External references
Embed the live status
— this badge updates automatically when the KEV or exploit status changes. How to embed it →
[](https://www.csirts.com/cve/CVE-2022-31631)