Bug 617134 (CVE-2010-1868, MOPS-2010-012, MOPS-2010-013) - CVE-2010-1868 php: sqlite: use of uninitialized memory triggered by empty SQL query (MOPS-2010-012, MOPS-2010-013)
Summary: CVE-2010-1868 php: sqlite: use of uninitialized memory triggered by empty SQL...
Alias: CVE-2010-1868, MOPS-2010-012, MOPS-2010-013
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-22 09:42 UTC by Jan Lieskovsky
Modified: 2019-09-29 12:38 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-07-23 14:40:13 UTC

Attachments (Terms of Use)
Public test.php PoC from [1] (144 bytes, text/plain)
2010-07-22 10:37 UTC, Jan Lieskovsky
no flags Details
Public exploit.php PoC from [1] (2.50 KB, text/plain)
2010-07-22 10:39 UTC, Jan Lieskovsky
no flags Details

Description Jan Lieskovsky 2010-07-22 09:42:38 UTC
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.

  [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

Comment 5 Tomas Hoger 2010-07-22 10:13:49 UTC
Upstream commit:

Comment 9 Tomas Hoger 2010-07-23 14:40:13 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.