CVE-2018-20346

Exp

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.

Published: 2018-12-21 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2018-20346 is rated High Exploit Risk (82.4/100): CVSS High severity, with high exploitation likelihood (EPSS 13.52%, 94th percentile). Core evidence: 2 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +2.01% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2018-20346

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2018-20346

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-29 11.51% 13.52% +2.01%
2 2026-05-24 16.56% 11.51% -5.05%
3 2026-05-22 16.56%

Full EPSS history (31 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2018-20346

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
8.1 3.0 HIGH
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.2 5.9 [email protected]
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 6.4 [email protected]

Weakness enumeration for CVE-2018-20346

OS Trackers for CVE-2018-20346

vendor priority summary link
debian not yet assigned CVE-2018-20346 not yet assigned priority: Debian including 2 source packages (chromium, sqlite3), 10 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 10. https://security-tracker.debian.org/tracker/CVE-2018-20346
gentoo normal CVE-2018-20346: 1 GLSA(s) (201904-21), 1 atom(s) (dev-db/sqlite); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2018-20346
redhat high https://access.redhat.com/security/cve/CVE-2018-20346
suse high CVE-2018-20346 severity important: SUSE including 414 source package names (0.1.0:libsqlite3-0-3.27.2-3.3.2, 0.1.75:libsqlite3-0-3.27.2-3.3.2, …), 1014 product×package rows across 530 product lines (Container bci/bci-init, Container bci/bci-sle15-kernel-module-devel, … (530 product lines)): Fixed 840, Known Affected 157, Known Not Affected 17. https://www.suse.com/security/cve/CVE-2018-20346/
ubuntu medium CVE-2018-20346 medium priority: Ubuntu including 2 source packages (chromium, sqlite3), 12 status rows across 6 suites (bionic, cosmic, disco, trusty, upstream, xenial): released 6, DNE 5, not-affected 1. https://ubuntu.com/security/CVE-2018-20346

Affected software / configurations for CVE-2018-20346

Vendor Product Version Raw CPE
sqlite sqlite < 3.25.3 cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*
google chrome < 71.0.3578.80 cpe:2.3:a:google:chrome:*:*:*:*:*:*:*:*
redhat linux 6.0 cpe:2.3:o:redhat:linux:6.0:*:*:*:*:*:*:*
debian debian_linux 8.0 cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
opensuse leap 15.0 cpe:2.3:o:opensuse:leap:15.0:*:*:*:*:*:*:*
opensuse leap 42.3 cpe:2.3:o:opensuse:leap:42.3:*:*:*:*:*:*:*

References for CVE-2018-20346

URL Tags
http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00040.html Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00070.html Mailing List Third Party Advisory
http://www.securityfocus.com/bid/106323 Third Party Advisory VDB Entry
https://access.redhat.com/articles/3758321 Third Party Advisory
https://blade.tencent.com/magellan/index_en.html Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1659379 Issue Tracking Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=1659677 Issue Tracking Third Party Advisory
https://chromereleases.googleblog.com/2018/12/stable-channel-update-for-desktop.html Third Party Advisory
https://chromium.googlesource.com/chromium/src/+/c368e30ae55600a1c3c9cb1710a54f9c55de786e Third Party Advisory
https://crbug.com/900910 Permissions Required Third Party Advisory
https://github.com/zhuowei/worthdoingbadly.com/blob/master/_posts/2018-12-14-sqlitebug.html Exploit Third Party Advisory
https://kc.mcafee.com/corporate/index?page=content&id=SB10365
https://lists.debian.org/debian-lts-announce/2018/12/msg00012.html Mailing List Third Party Advisory
https://lists.debian.org/debian-lts-announce/2020/08/msg00037.html
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PU4NZ6DDU4BEM3ACM3FM6GLEPX56ZQXK/
https://news.ycombinator.com/item?id=18685296 Third Party Advisory
https://security.gentoo.org/glsa/201904-21 Third Party Advisory
https://sqlite.org/src/info/940f2adc8541a838 Patch Third Party Advisory
https://sqlite.org/src/info/d44318f59044162e Patch Third Party Advisory
https://support.apple.com/HT209443
https://support.apple.com/HT209446
https://support.apple.com/HT209447
https://support.apple.com/HT209448
https://support.apple.com/HT209450
https://support.apple.com/HT209451
https://usn.ubuntu.com/4019-1/
https://usn.ubuntu.com/4019-2/
https://worthdoingbadly.com/sqlitebug/ Exploit Third Party Advisory
https://www.freebsd.org/security/advisories/FreeBSD-EN-19:03.sqlite.asc Third Party Advisory
https://www.mail-archive.com/sqlite-users%40mailinglists.sqlite.org/msg113218.html
https://www.oracle.com/security-alerts/cpuapr2020.html
https://www.sqlite.org/releaselog/3_25_3.html Release Notes Vendor Advisory
https://www.synology.com/security/advisory/Synology_SA_18_61 Third Party Advisory
cvelogic Threat Intelligence