{"id":"CVE-2018-8740","aliases":["ALPINE-CVE-2018-8740","BELL-CVE-2018-8740","CLSA-2026-1777052042","CLSA-2026-1777106754","DEBIAN-CVE-2018-8740","DLA-1633-1","DLA-2340-1","DLA-3431-1","EUVD-2018-20350","GHSA-c753-vqf3-vjxh","MGASA-2018-0181","MGASA-2023-0208","SUSE-SU-2019:1208-1","SUSE-SU-2019:1522-1","SUSE-SU-2021:3215-1","UBUNTU-CVE-2018-8740","USN-4205-1","USN-4394-1","openSUSE-SU-2024:11400-1"],"status":"published","title":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement...","description":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.07966,"percentile":0.94785,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2018-03-17T00:00:00Z","modified":"2026-10-24T10:30:24Z","fixes":[{"ecosystem":"Alpine:v3.4","package":"sqlite","fixed_in":["3.13.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.5","package":"sqlite","fixed_in":["3.15.2-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.6","package":"sqlite","fixed_in":["3.20.1-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.7","package":"sqlite","fixed_in":["3.21.0-r1"],"sources":["osv"]},{"ecosystem":"TuxCare:OracleLinux:6","package":"lemon","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"TuxCare:OracleLinux:6","package":"sqlite","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"TuxCare:OracleLinux:6","package":"sqlite-devel","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"TuxCare:OracleLinux:6","package":"sqlite-doc","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"TuxCare:OracleLinux:6","package":"sqlite-tcl","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"TuxCare:CentOS:6","package":"lemon","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"TuxCare:CentOS:6","package":"sqlite","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"TuxCare:CentOS:6","package":"sqlite-devel","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"TuxCare:CentOS:6","package":"sqlite-doc","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"TuxCare:CentOS:6","package":"sqlite-tcl","fixed_in":["3.6.20-1.el6_7.2.tuxcare.els4"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"sqlite3","fixed_in":["3.22.0-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"sqlite3","fixed_in":["3.22.0-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"sqlite3","fixed_in":["3.22.0-2"],"sources":["osv"]},{"ecosystem":"Mageia:5","package":"sqlite3","fixed_in":["3.10.2-1.2.mga5"],"sources":["osv"]},{"ecosystem":"Mageia:6","package":"sqlite3","fixed_in":["3.17.0-2.2.mga6"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"sqlite3","fixed_in":["3.8.2-1ubuntu2.2"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"sqlite3","fixed_in":["3.11.0-1ubuntu1.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"sqlite3","fixed_in":["3.22.0-1ubuntu0.4"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.4","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.13.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.5","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.15.2-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.6","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.20.1-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.7","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.21.0-r1"}]}]},{"source":"osv","ecosystem":"TuxCare:OracleLinux:6","package":"lemon","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"TuxCare:OracleLinux:6","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"TuxCare:OracleLinux:6","package":"sqlite-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"TuxCare:OracleLinux:6","package":"sqlite-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"TuxCare:OracleLinux:6","package":"sqlite-tcl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"TuxCare:CentOS:6","package":"lemon","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"TuxCare:CentOS:6","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"TuxCare:CentOS:6","package":"sqlite-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"TuxCare:CentOS:6","package":"sqlite-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"TuxCare:CentOS:6","package":"sqlite-tcl","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.6.20-1.el6_7.2.tuxcare.els4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.22.0-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.22.0-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.22.0-2"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.7.1-1+deb8u4"}]}],"versions":["3.8.7.1-1","3.8.7.1-1+deb8u1","3.8.7.1-1+deb8u2","3.8.7.1-1+deb8u3"],"bundled":5},{"source":"osv","ecosystem":"Debian:9","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.16.2-5+deb9u2"}]}],"versions":["3.16.2-5","3.16.2-5+deb9u1"],"bundled":12},{"source":"osv","ecosystem":"Debian:10","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.17-15+deb10u1"}]}],"versions":["2.8.17-15"],"bundled":2},{"source":"osv","ecosystem":"Mageia:5","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.10.2-1.2.mga5"}]}]},{"source":"osv","ecosystem":"Mageia:6","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.17.0-2.2.mga6"}]}]},{"source":"osv","ecosystem":"Mageia:8","package":"sqlite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.17-26.1.mga8"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP3","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.10.2-9.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Desktop 12 SP4","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.10.2-9.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP3","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.10.2-9.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP4","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.10.2-9.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.10.2-9.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.10.2-9.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP4","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.10.2-9.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP4","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.10.2-9.6.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12-LTSS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.3.1-2.12.1"}]}],"bundled":3},{"source":"osv","ecosystem":"SUSE:HPE Helion OpenStack 8","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 8","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 9","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud Crowbar 8","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud Crowbar 9","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP3","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP4","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Software Development Kit 12 SP5","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP2-BCL","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3-LTSS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP3-BCL","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP4-LTSS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server 12 SP5","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 12 SP5","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-9.18.1"}]}],"bundled":28},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.2-1ubuntu2.2"}]}],"versions":["3.7.17-1ubuntu1","3.8.0.2-1ubuntu1","3.8.1-1ubuntu1","3.8.1-1ubuntu3","3.8.2-1ubuntu1","3.8.2-1ubuntu2","3.8.2-1ubuntu2.1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.11.0-1ubuntu1.1"}]}],"versions":["3.8.11.1-1","3.9.1-2","3.9.2-1","3.10.0-1","3.10.1-1","3.10.2-1","3.11.0-1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.22.0-1ubuntu0.4"}]}],"versions":["3.19.3-3","3.20.1-2","3.21.0-1","3.22.0-1","3.22.0-1ubuntu0.1","3.22.0-1ubuntu0.2","3.22.0-1ubuntu0.3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.11.0-1ubuntu1.3"}]}],"versions":["3.8.11.1-1","3.9.1-2","3.9.2-1","3.10.0-1","3.10.1-1","3.10.2-1","3.11.0-1ubuntu1","3.11.0-1ubuntu1.1","3.11.0-1ubuntu1.2"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.22.0-1ubuntu0.2"}]}],"versions":["3.19.3-3","3.20.1-2","3.21.0-1","3.22.0-1","3.22.0-1ubuntu0.1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.11.0-1ubuntu1.5"}]}],"versions":["3.8.11.1-1","3.9.1-2","3.9.2-1","3.10.0-1","3.10.1-1","3.10.2-1","3.11.0-1ubuntu1","3.11.0-1ubuntu1.1","3.11.0-1ubuntu1.2","3.11.0-1ubuntu1.3","3.11.0-1ubuntu1.4"],"bundled":9},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.22.0-1ubuntu0.4"}]}],"versions":["3.19.3-3","3.20.1-2","3.21.0-1","3.22.0-1","3.22.0-1ubuntu0.1","3.22.0-1ubuntu0.2","3.22.0-1ubuntu0.3"],"bundled":9},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.31.1-4ubuntu0.1"}]}],"versions":["3.29.0-2","3.30.1-1","3.30.1-1ubuntu1","3.31.1-1ubuntu1","3.31.1-3","3.31.1-4"],"bundled":9},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"sqlite3","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.36.0-1.2"}]}],"bundled":10}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"sqlite","product":"sqlite"}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2019/01/msg00009.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://bugs.launchpad.net/ubuntu/+source/sqlite3/+bug/1756349","tags":["x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.securityfocus.com/bid/103466","tags":["vdb-entry","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://www.sqlite.org/cgi/src/vdiff?from=1774f1c3baf0bc3d\u0026to=d75e67654aa9620b","tags":["x_transferred","Patch","Vendor Advisory","fix"]},{"url":"https://www.sqlite.org/cgi/src/timeline?r=corrupt-schema","tags":["x_transferred","Vendor Advisory","advisory","report"]},{"url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6964","tags":["x_transferred","Permissions Required","Third Party Advisory","report"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00050.html","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PU4NZ6DDU4BEM3ACM3FM6GLEPX56ZQXK/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://usn.ubuntu.com/4205-1/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://usn.ubuntu.com/4394-1/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/08/msg00037.html","tags":["mailing-list","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E","tags":["mailing-list","x_transferred","web"]},{"url":"https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E","tags":["mailing-list","x_transferred","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00022.html","tags":["mailing-list","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-8740"},{"url":"https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b@%3Cissues.bookkeeper.apache.org%3E"},{"url":"https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4@%3Cissues.bookkeeper.apache.org%3E"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PU4NZ6DDU4BEM3ACM3FM6GLEPX56ZQXK/"},{"url":"https://github.com/advisories/GHSA-c753-vqf3-vjxh"},{"url":"https://security.alpinelinux.org/vuln/CVE-2018-8740","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2018-8740","tags":["advisory"]},{"url":"https://errata.tuxcare.com/els_os/oraclelinux6els/CLSA-2026-1777052042.html","tags":["advisory"]},{"url":"https://errata.tuxcare.com/els_os/centos6els/CLSA-2026-1777106754.html","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-8740","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0181.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22792","tags":["report"]},{"url":"http://openwall.com/lists/oss-security/2018/03/17/1","tags":["web"]},{"url":"https://advisories.mageia.org/MGASA-2023-0208.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=32018","tags":["report"]},{"url":"https://www.debian.org/lts/security/2023/dla-3431","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2019/suse-su-20191208-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1085790","tags":["report"]},{"url":"https://bugzilla.suse.com/1132045","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2017-10989","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-8740","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2019/suse-su-20191522-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1136976","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2019-8457","tags":["web"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20213215-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1157818","tags":["report"]},{"url":"https://bugzilla.suse.com/1158812","tags":["report"]},{"url":"https://bugzilla.suse.com/1158958","tags":["report"]},{"url":"https://bugzilla.suse.com/1158959","tags":["report"]},{"url":"https://bugzilla.suse.com/1158960","tags":["report"]},{"url":"https://bugzilla.suse.com/1159491","tags":["report"]},{"url":"https://bugzilla.suse.com/1159715","tags":["report"]},{"url":"https://bugzilla.suse.com/1159847","tags":["report"]},{"url":"https://bugzilla.suse.com/1159850","tags":["report"]},{"url":"https://bugzilla.suse.com/1160309","tags":["report"]},{"url":"https://bugzilla.suse.com/1160438","tags":["report"]},{"url":"https://bugzilla.suse.com/1160439","tags":["report"]},{"url":"https://bugzilla.suse.com/1164719","tags":["report"]},{"url":"https://bugzilla.suse.com/1172091","tags":["report"]},{"url":"https://bugzilla.suse.com/1172115","tags":["report"]},{"url":"https://bugzilla.suse.com/1172234","tags":["report"]},{"url":"https://bugzilla.suse.com/1172236","tags":["report"]},{"url":"https://bugzilla.suse.com/1172240","tags":["report"]},{"url":"https://bugzilla.suse.com/1173641","tags":["report"]},{"url":"https://bugzilla.suse.com/928700","tags":["report"]},{"url":"https://bugzilla.suse.com/928701","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2015-3414","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-3415","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-6153","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-2518","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-20346","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-16168","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19244","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19317","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19603","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19645","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19646","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19880","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19923","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19924","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19925","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19926","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-19959","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-20218","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13434","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13435","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13630","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13631","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13632","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-15358","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-9327","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2018-8740","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4205-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4394-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-8740","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-5018","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-5827","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-16168","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-19242","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-19244","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-19603","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-19645","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-11655","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-13434","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-13435","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-13630","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-13631","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-13632","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2019-9936","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-9937","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-13871","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2018-8740","description":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.","status":"published","published":"2018-03-17T00:00:00Z","modified":"2024-08-05T07:02:26.048Z","updated_at":"2026-11-02T14:35:04.172099Z"}],"euvd":[{"id":"EUVD-2018-20350","description":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.","status":"published","published":"2018-03-17T00:00:00Z","modified":"2024-08-05T07:02:26Z","updated_at":"2026-11-03T02:40:02.008103Z"}],"ghsa":[{"id":"GHSA-c753-vqf3-vjxh","title":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement...","description":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.","status":"published","published":"2022-05-13T01:08:59Z","modified":"2023-05-22T15:30:16Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:54:36.087743Z"}],"nvd":[{"id":"CVE-2018-8740","description":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.","status":"published","published":"2018-03-17T00:29:00.247Z","modified":"2026-06-17T02:05:19.63Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:04:24.264003Z"}],"osv":[{"id":"ALPINE-CVE-2018-8740","description":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.","status":"published","published":"2018-03-17T00:29:00.247Z","modified":"2026-10-23T17:23:44.021888486Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:27:47.663013Z"},{"id":"BELL-CVE-2018-8740","title":"CVE-2018-8740 does not affect BellSoft software","status":"withdrawn","published":"2018-03-17T00:29:00Z","modified":"2026-01-26T09:47:59.574237Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:14.701973Z"},{"id":"CVE-2018-8740","description":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.","status":"published","published":"2018-03-17T00:29:00.247Z","modified":"2026-10-24T10:30:24.699166223Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"DEBIAN-CVE-2018-8740","description":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.","status":"published","published":"2018-03-17T00:29:00.247Z","modified":"2026-10-23T18:03:09.028757215Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:31.170944Z"},{"id":"UBUNTU-CVE-2018-8740","description":"In SQLite through 3.22.0, databases whose schema is corrupted using a CREATE TABLE AS statement could cause a NULL pointer dereference, related to build.c and prepare.c.","status":"published","published":"2018-03-17T00:29:00Z","modified":"2026-04-22T12:04:25.683213Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:18.772093Z"},{"id":"CLSA-2026-1777052042","title":"sqlite: Fix of CVE-2018-8740","description":"- CVE-2018-8740: avoid a NULL pointer dereference when the sqlite_master schema contains a corrupt CREATE TABLE AS entry","status":"published","published":"2026-04-24T17:34:06Z","modified":"2026-06-01T00:33:25.855267249Z","updated_at":"2026-11-02T15:43:44.384419Z"},{"id":"CLSA-2026-1777106754","title":"sqlite: Fix of CVE-2018-8740","description":"- CVE-2018-8740: avoid a NULL pointer dereference when the sqlite_master schema contains a corrupt CREATE TABLE AS entry","status":"published","published":"2026-04-25T08:45:58Z","modified":"2026-06-01T00:33:17.021389664Z","updated_at":"2026-11-02T15:43:44.384419Z"},{"id":"DLA-1633-1","title":"sqlite3 - security update","status":"published","published":"2019-01-11T00:00:00Z","modified":"2026-03-09T01:17:59.656155Z","updated_at":"2026-11-02T15:46:09.777694Z"},{"id":"DLA-2340-1","title":"sqlite3 - security update","status":"published","published":"2020-08-22T00:00:00Z","modified":"2026-03-09T01:23:17.285848Z","updated_at":"2026-11-02T15:46:10.712745Z"},{"id":"DLA-3431-1","title":"sqlite - security update","status":"published","published":"2023-05-22T00:00:00Z","modified":"2026-03-09T01:21:36.845749Z","updated_at":"2026-11-02T15:46:11.734021Z"},{"id":"MGASA-2018-0181","title":"Updated sqlite3 packages fix security vulnerability","description":"In SQLite through 3.22.0, databases whose schema is corrupted using\na CREATE TABLE AS statement could cause a NULL pointer dereference,\nrelated to build.c and prepare.c (CVE-2018-8740).\n","status":"published","published":"2018-03-22T22:39:21Z","modified":"2026-04-16T06:24:07.576054829Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"MGASA-2023-0208","title":"Updated sqlite packages fix security vulnerability","description":"os_unix.c in SQLite before 3.13.0 improperly implements the temporary\ndirectory search algorithm, which might allow local users to obtain\nsensitive information, cause a denial of service (application crash), or\nhave unspecified other impact by leveraging use of the current working\ndirectory for temporary files. (CVE-2016-6153)\nIn SQLite through 3.22.0, databases whose schema is corrupted using a\nCREATE TABLE AS statement could cause a NULL pointer dereference,\nrelated to build.c and prepare (CVE-2018-8740)\n","status":"published","published":"2023-06-28T05:21:41Z","modified":"2026-04-16T04:43:50.603759133Z","updated_at":"2026-11-02T15:49:42.263076Z"},{"id":"openSUSE-SU-2024:11400-1","title":"libsqlite3-0-3.36.0-1.2 on GA media","description":"These are all security issues fixed in the libsqlite3-0-3.36.0-1.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:08:18.788761Z","updated_at":"2026-11-02T16:58:35.195147Z"},{"id":"SUSE-SU-2019:1208-1","title":"Security update for sqlite3","description":"This update for sqlite3 fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2018-8740: Fixed a NULL pointer dereference related to corrupted databases schemas (bsc#1085790).\n- CVE-2017-10989: Fixed a heap-based buffer over-read in getNodeSize() (bsc#1132045).\n","status":"published","published":"2019-05-10T12:04:12Z","modified":"2026-02-04T04:12:09.35444Z","updated_at":"2026-11-02T15:53:45.926331Z"},{"id":"SUSE-SU-2019:1522-1","title":"Security update for sqlite3","description":"This update for sqlite3 fixes the following issues:\n\nSecurity issue fixed:\n\n- CVE-2019-8457: Fixed a Heap out-of-bound read in rtreenode() when handling invalid rtree tables (bsc#1136976).\n- CVE-2018-8740: Fixed a NULL pointer dereference related to corrupted databases schemas (bsc#1085790).\n- CVE-2017-10989: Fixed a heap-based buffer over-read in getNodeSize() (bsc#1132045).\n","status":"published","published":"2019-06-17T15:28:32Z","modified":"2026-02-04T03:03:49.660591Z","updated_at":"2026-11-02T15:53:46.44301Z"},{"id":"SUSE-SU-2021:3215-1","title":"Security update for sqlite3","description":"This update for sqlite3 fixes the following issues:\n\nsqlite3 is sync version 3.36.0 from Factory (jsc#SLE-16032).\n\nThe following CVEs have been fixed in upstream releases up to\nthis point, but were not mentioned in the change log so far:\n\n* bsc#1173641, CVE-2020-15358: heap-based buffer overflow in\n  multiSelectOrderBy due to mishandling of query-flattener\n  optimization\n* bsc#1164719, CVE-2020-9327: NULL pointer dereference and\n  segmentation fault because of generated column optimizations in\n  isAuxiliaryVtabOperator\n* bsc#1160439, CVE-2019-20218: selectExpander in select.c proceeds\n  with WITH stack unwinding even after a parsing error\n* bsc#1160438, CVE-2019-19959: memory-management error via\n  ext/misc/zipfile.c involving embedded '\\0' input\n* bsc#1160309, CVE-2019-19923: improper handling  of  certain uses\n  of SELECT DISTINCT in flattenSubquery may lead to null pointer\n  dereference\n* bsc#1159850, CVE-2019-19924: improper error handling in\n  sqlite3WindowRewrite()\n* bsc#1159847, CVE-2019-19925: improper handling of NULL pathname\n  during an update of a ZIP archive\n* bsc#1159715, CVE-2019-19926: improper handling  of certain\n  errors during parsing  multiSelect in select.c\n* bsc#1159491, CVE-2019-19880: exprListAppendList in window.c\n  allows attackers to trigger an invalid pointer dereference\n* bsc#1158960, CVE-2019-19603: during handling of CREATE TABLE\n  and CREATE VIEW statements, does not consider confusion with\n  a shadow table name\n* bsc#1158959, CVE-2019-19646: pragma.c mishandles NOT NULL in an\n  integrity_check PRAGMA command in certain cases of generated\n  columns\n* bsc#1158958, CVE-2019-19645: alter.c allows attackers to trigger\n  infinite recursion via certain types of self-referential views\n  in conjunction with ALTER TABLE statements\n* bsc#1158812, CVE-2019-19317: lookupName in resolve.c omits bits\n  from the colUsed bitmask in the case of a generated column,\n  which allows attackers to cause a denial of service\n* bsc#1157818, CVE-2019-19244: sqlite3,sqlite2,sqlite: The\n  function sqlite3Select in select.c allows a crash if a\n  sub-select uses both DISTINCT and window functions, and also\n  has certain ORDER BY usage\n* bsc#928701, CVE-2015-3415: sqlite3VdbeExec comparison operator\n  vulnerability\n* bsc#928700, CVE-2015-3414: sqlite3,sqlite2: dequoting of\n  collation-sequence names\n* CVE-2020-13434 bsc#1172115: integer overflow in\n  sqlite3_str_vappendf\n* CVE-2020-13630 bsc#1172234: use-after-free in fts3EvalNextRow\n* CVE-2020-13631 bsc#1172236: virtual table allowed to be renamed\n  to one of its shadow tables\n* CVE-2020-13632 bsc#1172240: NULL pointer dereference via\n  crafted matchinfo() query\n* CVE-2020-13435: Malicious SQL statements could have crashed the\n  process that is running SQLite (bsc#1172091)\n","status":"published","published":"2021-09-23T14:26:45Z","modified":"2026-02-04T02:57:08.059032Z","updated_at":"2026-11-02T15:53:49.605187Z"},{"id":"USN-4205-1","title":"sqlite3 vulnerabilities","description":"It was discovered that SQLite incorrectly handled certain schemas.\nAn attacker could possibly use this issue to cause a denial of service.\nThis issue only affected Ubuntu 12.04 ESM. (CVE-2018-8740)\n\nIt was discovered that SQLite incorrectly handled certain schemas.\nAn attacker could possibly use this issue to cause a denial of service.\nThis issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS and Ubuntu 19.04.\n(CVE-2019-16168)\n\nIt was discovered that SQLite incorrectly handled certain schemas.\nAn attacker could possibly use this issue to mishandles some expressions.\nThis issue only affected Ubuntu 19.04 and Ubuntu 19.10. (CVE-2019-19242)\n\nIt was discovered that SQLite incorrectly handled certain queries.\nAn attacker could possibly use this issue to execute arbitrary code.\nThis issue only affected Ubuntu 19.04 and Ubuntu 19.10. (CVE-2019-19244)\n\nIt was discovered that SQLite incorrectly handled certain SQL commands.\nAn attacker could possibly use this issue to execute arbitrary code.\nThis issue only affected Ubuntu 19.04. (CVE-2019-5018)\n\nIt was discovered that SQLite incorrectly handled certain commands. An\nattacker could possibly use this issue to execute arbitrary code.\n(CVE-2019-5827)\n","status":"published","published":"2019-12-02T12:30:54Z","modified":"2026-05-29T18:00:42.497264333Z","updated_at":"2026-11-02T16:58:14.547547Z"},{"id":"USN-4394-1","title":"sqlite3 vulnerabilities","description":"It was discovered that SQLite incorrectly handled certain corruped schemas.\nAn attacker could possibly use this issue to cause a denial of service.\nThis issue only affected Ubuntu 18.04 LTS. (CVE-2018-8740)\n\nIt was discovered that SQLite incorrectly handled certain SELECT\nstatements. An attacker could possibly use this issue to cause a denial of\nservice. This issue was only addressed in Ubuntu 19.10. (CVE-2019-19603)\n\nIt was discovered that SQLite incorrectly handled certain self-referential\nviews. An attacker could possibly use this issue to cause a denial of\nservice. This issue was only addressed in Ubuntu 19.10. (CVE-2019-19645)\n\nHenry Liu discovered that SQLite incorrectly handled certain malformed\nwindow-function queries. An attacker could possibly use this issue to cause\na denial of service. This issue only affected Ubuntu 19.10 and Ubuntu 20.04\nLTS. (CVE-2020-11655)\n\nIt was discovered that SQLite incorrectly handled certain string\noperations. An attacker could use this issue to cause SQLite to crash,\nresulting in a denial of service, or possibly execute arbitrary code.\n(CVE-2020-13434)\n\nIt was discovered that SQLite incorrectly handled certain expressions. An\nattacker could use this issue to cause SQLite to crash, resulting in a\ndenial of service, or possibly execute arbitrary code. This issue only\naffected Ubuntu 19.10 and Ubuntu 20.04 LTS. (CVE-2020-13435)\n\nIt was discovered that SQLite incorrectly handled certain fts3 queries. An\nattacker could use this issue to cause SQLite to crash, resulting in a\ndenial of service, or possibly execute arbitrary code. (CVE-2020-13630)\n\nIt was discovered that SQLite incorrectly handled certain virtual table\nnames. An attacker could possibly use this issue to cause a denial of\nservice. This issue was only addressed in Ubuntu 19.10 and Ubuntu 20.04\nLTS. (CVE-2020-13631)\n\nIt was discovered that SQLite incorrectly handled certain fts3 queries. An\nattacker could use this issue to cause SQLite to crash, resulting in a\ndenial of service, or possibly execute arbitrary code. (CVE-2020-13632)\n","status":"published","published":"2020-06-10T13:36:53Z","modified":"2026-04-27T15:48:43.777096828Z","updated_at":"2026-11-02T16:58:14.547547Z"}]}}
