Red Hat Bugzilla – Bug 617134
CVE-2010-1868 php: sqlite: use of uninitialized memory triggered by empty SQL query (MOPS-2010-012, MOPS-2010-013)
Last modified: 2015-07-31 02:29:33 EDT
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.
Created attachment 433657 [details]
Public test.php PoC from 
Created attachment 433658 [details]
Public exploit.php PoC from 
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.
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.