{"id":"ALPINE-CVE-2018-8740","details":"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.","modified":"2026-03-09T01:13:34.328582Z","published":"2018-03-17T00:29:00.247Z","upstream":["CVE-2018-8740"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2018-8740"}],"affected":[{"package":{"name":"sqlite","ecosystem":"Alpine:v3.4","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.13.0-r2"}]}],"versions":["3.10.2-r0","3.11.0-r0","3.11.1-r0","3.12.0-r0","3.12.1-r0","3.12.2-r0","3.12.2-r1","3.13.0-r0","3.13.0-r1","3.6.10-r0","3.6.15-r0","3.6.22-r0","3.6.22-r1","3.6.22-r2","3.7.0-r0","3.7.0.1-r0","3.7.1-r0","3.7.10-r0","3.7.11-r0","3.7.12-r0","3.7.12.1-r0","3.7.12.1-r1","3.7.12.1-r2","3.7.13-r0","3.7.13-r1","3.7.14-r0","3.7.14.1-r0","3.7.15-r0","3.7.15.1-r0","3.7.15.2-r0","3.7.16.1-r0","3.7.16.2-r0","3.7.17-r0","3.7.2-r0","3.7.3-r0","3.7.4-r0","3.7.4-r1","3.7.4-r2","3.7.5-r0","3.7.5-r1","3.7.6-r0","3.7.6.1-r0","3.7.6.2-r0","3.7.6.2-r1","3.7.6.3-r0","3.7.7-r0","3.7.7.1-r0","3.7.8-r0","3.7.9-r0","3.8.0-r0","3.8.0.1-r0","3.8.0.2-r0","3.8.1-r0","3.8.10-r0","3.8.10.1-r0","3.8.10.1-r1","3.8.10.2-r0","3.8.11-r0","3.8.11.1-r0","3.8.11.1-r1","3.8.2-r0","3.8.3-r0","3.8.3.1-r0","3.8.4-r0","3.8.4.1-r0","3.8.4.2-r0","3.8.4.3-r0","3.8.4.3-r1","3.8.5-r0","3.8.6-r0","3.8.7-r0","3.8.7.1-r0","3.8.7.2-r0","3.8.7.3-r0","3.8.7.4-r0","3.8.8.1-r0","3.8.8.2-r0","3.8.8.3-r0","3.8.9-r0","3.9.0-r1","3.9.1-r0","3.9.2-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-8740.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.5","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.15.2-r2"}]}],"versions":["3.10.2-r0","3.11.0-r0","3.11.1-r0","3.12.0-r0","3.12.1-r0","3.12.2-r0","3.12.2-r1","3.13.0-r0","3.14.1-r0","3.14.2-r0","3.15.0-r0","3.15.1-r0","3.15.2-r0","3.15.2-r1","3.6.10-r0","3.6.15-r0","3.6.22-r0","3.6.22-r1","3.6.22-r2","3.7.0-r0","3.7.0.1-r0","3.7.1-r0","3.7.10-r0","3.7.11-r0","3.7.12-r0","3.7.12.1-r0","3.7.12.1-r1","3.7.12.1-r2","3.7.13-r0","3.7.13-r1","3.7.14-r0","3.7.14.1-r0","3.7.15-r0","3.7.15.1-r0","3.7.15.2-r0","3.7.16.1-r0","3.7.16.2-r0","3.7.17-r0","3.7.2-r0","3.7.3-r0","3.7.4-r0","3.7.4-r1","3.7.4-r2","3.7.5-r0","3.7.5-r1","3.7.6-r0","3.7.6.1-r0","3.7.6.2-r0","3.7.6.2-r1","3.7.6.3-r0","3.7.7-r0","3.7.7.1-r0","3.7.8-r0","3.7.9-r0","3.8.0-r0","3.8.0.1-r0","3.8.0.2-r0","3.8.1-r0","3.8.10-r0","3.8.10.1-r0","3.8.10.1-r1","3.8.10.2-r0","3.8.11-r0","3.8.11.1-r0","3.8.11.1-r1","3.8.2-r0","3.8.3-r0","3.8.3.1-r0","3.8.4-r0","3.8.4.1-r0","3.8.4.2-r0","3.8.4.3-r0","3.8.4.3-r1","3.8.5-r0","3.8.6-r0","3.8.7-r0","3.8.7.1-r0","3.8.7.2-r0","3.8.7.3-r0","3.8.7.4-r0","3.8.8.1-r0","3.8.8.2-r0","3.8.8.3-r0","3.8.9-r0","3.9.0-r1","3.9.1-r0","3.9.2-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-8740.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.6","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.20.1-r2"}]}],"versions":["3.10.2-r0","3.11.0-r0","3.11.1-r0","3.12.0-r0","3.12.1-r0","3.12.2-r0","3.12.2-r1","3.13.0-r0","3.14.1-r0","3.14.2-r0","3.15.0-r0","3.15.1-r0","3.15.2-r0","3.16.0-r0","3.16.2-r0","3.17.0-r0","3.17.0-r1","3.18.0-r0","3.20.1-r0","3.20.1-r1","3.6.10-r0","3.6.15-r0","3.6.22-r0","3.6.22-r1","3.6.22-r2","3.7.0-r0","3.7.0.1-r0","3.7.1-r0","3.7.10-r0","3.7.11-r0","3.7.12-r0","3.7.12.1-r0","3.7.12.1-r1","3.7.12.1-r2","3.7.13-r0","3.7.13-r1","3.7.14-r0","3.7.14.1-r0","3.7.15-r0","3.7.15.1-r0","3.7.15.2-r0","3.7.16.1-r0","3.7.16.2-r0","3.7.17-r0","3.7.2-r0","3.7.3-r0","3.7.4-r0","3.7.4-r1","3.7.4-r2","3.7.5-r0","3.7.5-r1","3.7.6-r0","3.7.6.1-r0","3.7.6.2-r0","3.7.6.2-r1","3.7.6.3-r0","3.7.7-r0","3.7.7.1-r0","3.7.8-r0","3.7.9-r0","3.8.0-r0","3.8.0.1-r0","3.8.0.2-r0","3.8.1-r0","3.8.10-r0","3.8.10.1-r0","3.8.10.1-r1","3.8.10.2-r0","3.8.11-r0","3.8.11.1-r0","3.8.11.1-r1","3.8.2-r0","3.8.3-r0","3.8.3.1-r0","3.8.4-r0","3.8.4.1-r0","3.8.4.2-r0","3.8.4.3-r0","3.8.4.3-r1","3.8.5-r0","3.8.6-r0","3.8.7-r0","3.8.7.1-r0","3.8.7.2-r0","3.8.7.3-r0","3.8.7.4-r0","3.8.8.1-r0","3.8.8.2-r0","3.8.8.3-r0","3.8.9-r0","3.9.0-r1","3.9.1-r0","3.9.2-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-8740.json"}},{"package":{"name":"sqlite","ecosystem":"Alpine:v3.7","purl":"pkg:apk/alpine/sqlite?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.21.0-r1"}]}],"versions":["3.10.2-r0","3.11.0-r0","3.11.1-r0","3.12.0-r0","3.12.1-r0","3.12.2-r0","3.12.2-r1","3.13.0-r0","3.14.1-r0","3.14.2-r0","3.15.0-r0","3.15.1-r0","3.15.2-r0","3.16.0-r0","3.16.2-r0","3.17.0-r0","3.17.0-r1","3.18.0-r0","3.18.0-r1","3.19.3-r0","3.20.0-r0","3.20.1-r0","3.21.0-r0","3.6.10-r0","3.6.15-r0","3.6.22-r0","3.6.22-r1","3.6.22-r2","3.7.0-r0","3.7.0.1-r0","3.7.1-r0","3.7.10-r0","3.7.11-r0","3.7.12-r0","3.7.12.1-r0","3.7.12.1-r1","3.7.12.1-r2","3.7.13-r0","3.7.13-r1","3.7.14-r0","3.7.14.1-r0","3.7.15-r0","3.7.15.1-r0","3.7.15.2-r0","3.7.16.1-r0","3.7.16.2-r0","3.7.17-r0","3.7.2-r0","3.7.3-r0","3.7.4-r0","3.7.4-r1","3.7.4-r2","3.7.5-r0","3.7.5-r1","3.7.6-r0","3.7.6.1-r0","3.7.6.2-r0","3.7.6.2-r1","3.7.6.3-r0","3.7.7-r0","3.7.7.1-r0","3.7.8-r0","3.7.9-r0","3.8.0-r0","3.8.0.1-r0","3.8.0.2-r0","3.8.1-r0","3.8.10-r0","3.8.10.1-r0","3.8.10.1-r1","3.8.10.2-r0","3.8.11-r0","3.8.11.1-r0","3.8.11.1-r1","3.8.2-r0","3.8.3-r0","3.8.3.1-r0","3.8.4-r0","3.8.4.1-r0","3.8.4.2-r0","3.8.4.3-r0","3.8.4.3-r1","3.8.5-r0","3.8.6-r0","3.8.7-r0","3.8.7.1-r0","3.8.7.2-r0","3.8.7.3-r0","3.8.7.4-r0","3.8.8.1-r0","3.8.8.2-r0","3.8.8.3-r0","3.8.9-r0","3.9.0-r1","3.9.1-r0","3.9.2-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2018-8740.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}