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.
Configurations

Configuration 1 (hide)

AND
OR cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*

History

02 Jul 2025, 21:35

Type Values Removed Values Added
CPE cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*
References () https://bugs.php.net/bug.php?id=81740 - () https://bugs.php.net/bug.php?id=81740 - Vendor Advisory
References () https://security.netapp.com/advisory/ntap-20230223-0007/ - () https://security.netapp.com/advisory/ntap-20230223-0007/ - Third Party Advisory
First Time Php
Sqlite sqlite
Php php
Sqlite

13 Feb 2025, 16:15

Type Values Removed Values Added
Summary
  • (es) En las versiones de PHP 8.0.* anteriores a 8.0.27, 8.1.* anteriores a 8.1.15, 8.2.* anteriores a 8.2.2, cuando se usa la función PDO::quote() para citar datos proporcionados por el usuario para SQLite, proporcionar una cadena demasiado larga puede provocar que el controlador cite incorrectamente los datos, lo que puede generar vulnerabilidades de inyección SQL.
References () https://bugs.php.net/bug.php?id=81740 - () https://bugs.php.net/bug.php?id=81740 -

12 Feb 2025, 23:15

Type Values Removed Values Added
References
  • () https://security.netapp.com/advisory/ntap-20230223-0007/ -

12 Feb 2025, 22:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-02-12 22:15

Updated : 2025-07-02 21:35


NVD link : CVE-2022-31631

Mitre link : CVE-2022-31631

CVE.ORG link : CVE-2022-31631


JSON object : View

Products Affected

sqlite

  • sqlite

php

  • php
CWE
CWE-74

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')