{"id":"CVE-2019-19923","published":"2019-12-24T15:43:33Z","modified":"2026-10-14T07:40:12Z","title":"flattenSubquery in select.c in SQLite 3.30.1 mishandles certain uses of SELECT DISTINCT involving a LEFT JOIN in which…","vendor":null,"product":null,"tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0681,"percentile":0.94158,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/sqlite/sqlite/commit/396afe6f6aa90a31303c183e11b2b2d4b7956b35","tags":["x_refsource_MISC"]},{"url":"https://security.netapp.com/advisory/ntap-20200114-0003/","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00010.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00015.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://access.redhat.com/errata/RHSA-2020:0514","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00025.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://www.debian.org/security/2020/dsa-4638","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://usn.ubuntu.com/4298-1/","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2020.html","tags":["x_refsource_MISC"]},{"url":"https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf","tags":["x_refsource_CONFIRM"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-389290.html","tags":[]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","tags":[]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":18.83}]},"summary":{"text":"The flaw is in the flattenSubquery routine in select.c of SQLite 3.30.1, which mishandles certain queries that combine SELECT DISTINCT with a LEFT JOIN whose right-hand side is a view.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:59:46Z"},"euvd":{"id":"EUVD-2019-9512","exploited":false,"provenance":"source"}}