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.
https://www.sqlite.org/src/info/eddc05e7bb31fae74daa86e0504a3478b99fa0f2
https://support.apple.com/HT205267
https://support.apple.com/HT205213
https://security.gentoo.org/glsa/201507-05
http://www.ubuntu.com/usn/USN-2698-1
http://www.securitytracker.com/id/1033703
http://www.securityfocus.com/bid/74228
http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
http://www.debian.org/security/2015/dsa-3252
http://seclists.org/fulldisclosure/2015/Apr/31
http://rhn.redhat.com/errata/RHSA-2015-1635.html
http://lists.apple.com/archives/security-announce/2015/Sep/msg00008.html
http://lists.apple.com/archives/security-announce/2015/Sep/msg00005.html