1. CVE archive
  2. 2015
  3. CVE-2015-3414

CVE-2015-3414

7.5 High severity CVSS v2.0 · source NVD AV:N/AC:L/Au:N/C:P/I:P/A:P 7.5 – High

Description

SQLite before 3.8.9 does not properly implement the dequoting of collation-sequence names, which allows context-dependent attackers to cause a denial of service (uninitialized memory access and application crash) or possibly have unspecified other impact via a crafted COLLATE clause, as demonstrated by COLLATE"""""""" at the end of a SELECT statement.

Affected products

VendorProductVersionPlatform
apple mac os x 10.10.5 –
apple watchos 1.0.1 –
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
canonical ubuntu linux 15.04 –
debian debian linux 8.0 –
php php >= 5.4.0 < 5.4.42 –
php php >= 5.5.0 < 5.5.26 –
php php >= 5.6.0 < 5.6.10 –
sqlite sqlite <= 3.8.8.3 –
All 78 Sqlite vulnerabilities

Vulnerability type

CWE-908 Use of Uninitialized Resource

The product uses or accesses a resource that has not been initialized.

Impact on systems

ScopeImpact
Confidentiality Read Memory, Read Application Data
When reusing a resource such as memory or a program variable, the original contents may not have been cleared before it is sent to an untrusted party.
Availability DoS: Crash, Exit, or Restart, DoS: Instability
The uninitialized resource may contain values that cause program flow to change in ways that the programmer did not intend, possibly leading to a crash.
Other Unexpected State, Varies by Context
The consequences vary depending on the type of resource and how it is used within the product.

How to prevent it

Implementation Explicitly initialize the resource before use. If this is performed through an API function or standard procedure, follow all required steps.
Implementation Pay close attention to complex conditionals that affect initialization, since some branches might not perform the initialization.
Implementation Avoid race conditions (CWE-362) during initialization routines.
Build and Compilation Run or compile the product with settings that generate warnings about uninitialized variables or data.

All 1,027 CWE-908 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org