First published: Wed Jan 08 2020(Updated: )
flattenSubquery in select.c in SQLite 3.30.1 mishandles certain uses of SELECT DISTINCT involving a LEFT JOIN in which the right-hand side is a view. This can cause a NULL pointer dereference (or incorrect results). Upstream fix: <a href="https://github.com/sqlite/sqlite/commit/396afe6f6aa90a31303c183e11b2b2d4b7956b35">https://github.com/sqlite/sqlite/commit/396afe6f6aa90a31303c183e11b2b2d4b7956b35</a>
Affected Software | Affected Version | How to fix |
---|---|---|
SQLite JDBC |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of REDHAT-BUG-1788846 is classified as a potential vulnerability due to the risk of NULL pointer dereference or incorrect results.
To fix REDHAT-BUG-1788846, users should upgrade to the latest version of SQLite that contains the upstream fix.
REDHAT-BUG-1788846 affects SQLite 3.30.1 specifically, particularly in scenarios involving SELECT DISTINCT and LEFT JOIN with views.
REDHAT-BUG-1788846 describes a mishandling issue in flattenSubquery in select.c that can lead to a NULL pointer dereference.
Yes, there is an upstream fix for REDHAT-BUG-1788846 that has been implemented in later versions of SQLite.