{"id":"UBUNTU-CVE-2018-20346","details":"SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries that occur after crafted changes to FTS3 shadow tables, allowing remote attackers to execute arbitrary code by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases), aka Magellan.","modified":"2026-04-22T11:38:53.104633Z","published":"2018-12-21T00:00:00Z","related":["USN-4019-1","USN-4019-2"],"upstream":["CVE-2018-20346"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-20346"},{"type":"REPORT","url":"https://blade.tencent.com/magellan/index_en.html"},{"type":"REPORT","url":"https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg113218.html"},{"type":"REPORT","url":"https://access.redhat.com/articles/3758321"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1659379"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1659677"},{"type":"REPORT","url":"https://chromereleases.googleblog.com/2018/12/stable-channel-update-for-desktop.html"},{"type":"REPORT","url":"https://chromium.googlesource.com/chromium/src/+/c368e30ae55600a1c3c9cb1710a54f9c55de786e"},{"type":"REPORT","url":"https://crbug.com/900910"},{"type":"REPORT","url":"https://github.com/zhuowei/worthdoingbadly.com/blob/master/_posts/2018-12-14-sqlitebug.html"},{"type":"REPORT","url":"https://lists.debian.org/debian-lts-announce/2018/12/msg00012.html"},{"type":"REPORT","url":"https://news.ycombinator.com/item?id=18685296"},{"type":"REPORT","url":"https://sqlite.org/src/info/940f2adc8541a838"},{"type":"REPORT","url":"https://sqlite.org/src/info/d44318f59044162e"},{"type":"REPORT","url":"https://worthdoingbadly.com/sqlitebug/"},{"type":"REPORT","url":"https://www.sqlite.org/releaselog/3_25_3.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4019-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-4019-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-20346"}],"affected":[{"package":{"name":"sqlite3","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/sqlite3@3.8.2-1ubuntu2.2+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.8.2-1ubuntu2.2+esm1"}]}],"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","3.8.2-1ubuntu2.2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"lemon","binary_version":"3.8.2-1ubuntu2.2+esm1"},{"binary_name":"libsqlite3-0","binary_version":"3.8.2-1ubuntu2.2+esm1"},{"binary_name":"libsqlite3-tcl","binary_version":"3.8.2-1ubuntu2.2+esm1"},{"binary_name":"sqlite3","binary_version":"3.8.2-1ubuntu2.2+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20346.json"}},{"package":{"name":"sqlite3","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sqlite3@3.11.0-1ubuntu1.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.11.0-1ubuntu1.2"}]}],"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"lemon","binary_version":"3.11.0-1ubuntu1.2"},{"binary_name":"libsqlite3-0","binary_version":"3.11.0-1ubuntu1.2"},{"binary_name":"libsqlite3-tcl","binary_version":"3.11.0-1ubuntu1.2"},{"binary_name":"sqlite3","binary_version":"3.11.0-1ubuntu1.2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20346.json"}},{"package":{"name":"sqlite3","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/sqlite3@3.22.0-1ubuntu0.1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.22.0-1ubuntu0.1"}]}],"versions":["3.19.3-3","3.20.1-2","3.21.0-1","3.22.0-1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"lemon","binary_version":"3.22.0-1ubuntu0.1"},{"binary_name":"libsqlite3-0","binary_version":"3.22.0-1ubuntu0.1"},{"binary_name":"libsqlite3-tcl","binary_version":"3.22.0-1ubuntu0.1"},{"binary_name":"sqlite3","binary_version":"3.22.0-1ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-20346.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}