Common Vulnerabilities and Exposures assigned an identifier CVE-2010-1868 to the following vulnerability: The (1) sqlite_single_query and (2) sqlite_array_query functions in ext/sqlite/sqlite.c in PHP 5.2 through 5.2.13 and 5.3 through 5.3.2 allow context-dependent attackers to execute arbitrary code by calling these functions with an empty SQL query, which triggers access of uninitialized memory. References: [1] http://php-security.org/2010/05/07/mops-2010-012-php-sqlite_single_query-uninitialized-memory-usage-vulnerability/index.html [2] http://php-security.org/2010/05/07/mops-2010-013-php-sqlite_array_query-uninitialized-memory-usage-vulnerability/index.html [3] http://php-security.org/2010/05/07/mops-submission-03-sqlite_single_query-sqlite_array_query-uninitialized-memory-usage/index.html
Upstream commit: http://svn.php.net/viewvc?view=revision&revision=298697
Created attachment 433657 [details] Public test.php PoC from [1] [1] http://php-security.org/2010/05/07/mops-submission-03-sqlite_single_query-sqlite_array_query-uninitialized-memory-usage/index.html#__vulnerability
Created attachment 433658 [details] Public exploit.php PoC from [1] [1] http://php-security.org/2010/05/07/mops-submission-03-sqlite_single_query-sqlite_array_query-uninitialized-memory-usage/index.html#__vulnerability
sqlite extension (using SQLite version 2) is not enabled in Red Hat Enterprise Linux or Fedora php packages. Only pdo-sqlite (in RHEL5 and later) and sqlite3 (in current Fedora and RHEL6 Beta) for SQLite version 3 are enabled. Statement: Not vulnerable. This issue did not affect the versions of php as shipped with Red Hat Enterprise Linux 3, 4, or 5, as well as the versions of php53 as shipped with Red Hat Enterprise Linux 5.