CVE-2018-20346

NameCVE-2018-20346
DescriptionSQLite 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1613-1, DLA-2340-1, DSA-4352-1, ELA-74-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
chromium (PTS)stretch (security), stretch (lts), stretch73.0.3683.75-1~deb9u1fixed
buster (security), buster, buster (lts)90.0.4430.212-1~deb10u1fixed
bullseye (security), bullseye120.0.6099.224-1~deb11u1fixed
bookworm130.0.6723.91-1~deb12u1fixed
bookworm (security)130.0.6723.116-1~deb12u1fixed
trixie130.0.6723.116-1fixed
sid131.0.6778.85-1fixed
chromium-browser (PTS)stretch (security), stretch (lts), stretch71.0.3578.80-1~deb9u1fixed
sqlite (PTS)jessie, jessie (lts)2.8.17-12+deb8u1fixed
stretch (lts), stretch2.8.17-14+deb9u1fixed
buster (security), buster, buster (lts)2.8.17-15+deb10u1fixed
sqlite3 (PTS)jessie, jessie (lts)3.8.7.1-1+deb8u8fixed
stretch (security)3.16.2-5+deb9u3fixed
stretch (lts), stretch3.16.2-5+deb9u4fixed
buster, buster (lts)3.27.2-3+deb10u3fixed
buster (security)3.27.2-3+deb10u2fixed
bullseye3.34.1-3fixed
bullseye (security)3.34.1-3+deb11u1fixed
bookworm3.40.1-2+deb12u1fixed
sid, trixie3.46.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
chromiumsource(unstable)71.0.3578.80-1
chromium-browsersourcestretch71.0.3578.80-1~deb9u1DSA-4352-1
sqlitesource(unstable)(not affected)
sqlite3sourcewheezy3.7.13-1+deb7u5ELA-74-1
sqlite3sourcejessie3.8.7.1-1+deb8u3DLA-1613-1
sqlite3sourcestretch3.16.2-5+deb9u2DLA-2340-1
sqlite3source(unstable)3.25.3-1

Notes

- sqlite <not-affected> (FTS (full-text search) modules not present in v2)
https://blade.tencent.com/magellan/index_en.html
RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=1659379
Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=1659677
Fedora patch: https://src.fedoraproject.org/rpms/sqlite/c/d8da047b90b7eff583c50bf7fa7dc3bc37414249?branch=f28
https://www.mail-archive.com/sqlite-users@mailinglists.sqlite.org/msg113218.html
Upstream change: https://www.sqlite.org/src/info/940f2adc8541a838

Search for package or bug name: Reporting problems