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).
https://www.oracle.com/security-alerts/cpuapr2020.html
https://www.debian.org/security/2020/dsa-4638
https://usn.ubuntu.com/4298-1/
https://security.netapp.com/advisory/ntap-20200114-0003/
https://github.com/sqlite/sqlite/commit/396afe6f6aa90a31303c183e11b2b2d4b7956b35
https://cert-portal.siemens.com/productcert/pdf/ssa-389290.pdf
https://access.redhat.com/errata/RHSA-2020:0514
http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00025.html
http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00015.html
http://lists.opensuse.org/opensuse-security-announce/2020-02/msg00010.html