CVE-2018-20346 in the critical feed json
SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries t…
published 2018-12-21 7 y ago modified 2026-06-17 4 mo ago also EUVD-2018-12904
- cvss
- 8.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 10.2%
- EPSS 10.2% chance of exploitation in 30 days, percentile 95%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- sqlite sqlite 3.25.3
- google chrome 71.0.3578.80
- sqlite3 Debian 14, Debian 13, Debian 12 3.25.3-1
- chromium Debian 14, Debian 13, Debian 12 71.0.3578.80-1
debian advisories DEBIAN-CVE-2018-20346
- sqlite3 Ubuntu 16.04 LTS 3.11.0-1ubuntu1.2
- sqlite3 Ubuntu 18.04 LTS 3.22.0-1ubuntu0.1
- sqlite3 Ubuntu Pro 14.04 LTS 3.8.2-1ubuntu2.2+esm1
ubuntu advisories UBUNTU-CVE-2018-20346
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- sqlite3 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 3.36.0-9.18.1
- sqlite3 SLES for SAP 12 SP4, SLES for SAP 12 SP3, SLES for SAP 12 SP2 +12 more 3.8.10.2-9.3.1
- sqlite3 Studio Onsite 1.3, SLES for SAP 11 SP4, SLES 11 SP4 +2 more 3.7.6.3-1.4.7.3.1
- sqlite3 SLE Module for Basesystem 15 3.27.2-3.3.2
- sqlite3 SLES 12-LTSS 3.8.3.1-2.7.1
suse advisories SUSE-SU-2021:3215-1SUSE-SU-2019:0973-1SUSE-SU-2019:0913-1SUSE-SU-2019:14003-1SUSE-SU-2019:0788-1
- sqlite3 openSUSE Leap 15.0 3.27.2-lp150.2.3.1
opensuse advisories openSUSE-SU-2019:1159-1
- sqlite Alpine 3.8, Alpine 3.7, Alpine 3.6 3.25.3-r0
alpine advisories ALPINE-CVE-2018-20346
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ceph Azure Linux 3.0 18.2.1-1
azure linux advisories AZL-38458
Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT
- sqlite Arch Linux 3.26.0-1
arch linux advisories AVG-840
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-20346 updated cvss 7.0
sqlite: Multiple flaws in sqlite which can be triggered via corrupted internal databases (Magellan)
-
Red Hat Enterprise Linux 5 sqlite Red Hat Enterprise Linux 6 lemon, sqlite, sqlite-tcl Red Hat Enterprise Linux 7 lemon, sqlite, sqlite-tcl Red Hat Enterprise Linux 8 lemon, sqlite, sqlite-libsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-26-141-03 updated cvss 8.1
ABB B&R Automation Studio
-
ABB B&R Automation Studio <6.5affected: vendor fix, mitigation
-
ABB B&R Automation Studio 6.5fixed
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
Exploit prediction
10.23% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- worthdoingbadly.com https://worthdoingbadly.com/sqlitebug/ referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/zhuowei/worthdoingbadly.com/blob/master/_posts/2018-12-14-sqlitebug.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-190 Integer Overflow or Wraparound
- Technology feeds
References
-
chromium.googlesource.com
/chromium/src/+/c368e30ae55600a1c3c9cb1710a54f9c55de786e
third-party-advisory
-
sqlite.org
/src/info/940f2adc8541a838
patch, third-party-advisory
-
sqlite.org
/src/info/d44318f59044162e
patch, third-party-advisory
-
worthdoingbadly.com
/sqlitebug/
exploit, third-party-advisory
-
github.com
/zhuowei/worthdoingbadly.com/blob/master/_posts/2018-12-14-sqlitebug.html
exploit, third-party-advisory
-
freebsd.org
/security/advisories/FreeBSD-EN-19:03.sqlite.asc
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-04/msg00040.html
vendor-advisory, third-party-advisory
-
lists.opensuse.org
/opensuse-security-announce/2019-04/msg00070.html
vendor-advisory, mailing-list, third-party-advisory
-
security.gentoo.org
/glsa/201904-21
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/4019-1/
vendor-advisory
-
usn.ubuntu.com
/4019-2/
vendor-advisory
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/PU4NZ6DDU4BEM3ACM3FM6GLEPX56ZQXK/
vendor-advisory
-
sqlite.org
/releaselog/3_25_3.html
release-notes, vendor-advisory
- support.apple.com /HT209446
-
bugzilla.redhat.com
/show_bug.cgi?id=1659379
issue-tracking, third-party-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=1659677
issue-tracking, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2018/12/msg00012.html
mailing-list, third-party-advisory
-
synology.com
/security/advisory/Synology_SA_18_61
third-party-advisory
-
access.redhat.com
/articles/3758321
third-party-advisory
- support.apple.com /HT209443
-
blade.tencent.com
/magellan/index_en.html
third-party-advisory
- support.apple.com /HT209451
-
news.ycombinator.com
/item?id=18685296
third-party-advisory
- support.apple.com /HT209450
- support.apple.com /HT209448
- mail-archive.com /sqlite-users%40mailinglists.sqlite.org/msg113218.html
-
securityfocus.com
/bid/106323
vdb-entry, third-party-advisory
-
crbug.com
/900910
permissions-required, third-party-advisory
-
chromereleases.googleblog.com
/2018/12/stable-channel-update-for-desktop.html
third-party-advisory
- support.apple.com /HT209447
- oracle.com /security-alerts/cpuapr2020.html
-
lists.debian.org
/debian-lts-announce/2020/08/msg00037.html
mailing-list
- kc.mcafee.com /corporate/index?page=content&id=SB10365
Sources
- CVE List CVE-2018-20346
- NVD CVE-2018-20346
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.