Skip to main content
← All vulnerabilities
CVE-2022-31631

PDO::quote() may return unquoted string

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.0.27, 8.1.15, 8.2.2
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • pdo_sqlite

    From 8.0.x · fixed in 8.0.27; From 8.1.x · fixed in 8.1.15; From 8.2.x · fixed in 8.2.2

References 1

bugs.php.net