CVE-2018-20346: SQL Injection

Published Dec 14, 2018
·
Updated

Last updated 25 August 2025

Other sources

Multiple flaws were found in sqlite. An attacker who is able to run arbitrary SQL statements could use this flaw to corrupt the internal databases, which can lead to arbitrary code execution as the user running sqlite.

This issue was fixed via sqlite-3.25.3 release at: https://www.sqlite.org/releaselog/3253.html

Also sqlite-3.36 introduced SQLITEDBCONFIGDEFENSIVE option which when added to the config file, could prevent attackers for corrupting the internal database files. This could however break applications which require users to write these database files. https://www.sqlite.org/releaselog/3260.html https://www.sqlite.org/c3ref/cdbconfigdefensive.html#sqlitedbconfigdefensive

Red Hat

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.

Launchpad

SQLite. Multiple memory corruption issues were addressed with improved input validation.

Credit

Tencent Blade Team

Affected Software

17 affected componentsFixes available
Apple tvOS<12.1.2
12.1.2
Apple macOS Mojave<10.14.3
10.14.3
Apple High Sierra
Apple Sierra
Apple WatchOS<5.1.3
5.1.3
Apple iCloud for Windows<7.10
7.10
Google Android
Apple iTunes for Windows<12.9.3
12.9.3
Apple iOS<12.1.3
12.1.3
SQLite SQLite<3.25.3
Google Chrome<71.0.3578.80
redhat Linux=6.0
Debian Debian Linux=8.0
openSUSE Leap=15.0
openSUSE Leap=42.3
debian/chromium
120.0.6099.224-1~deb11u1143.0.7499.169-1~deb12u1145.0.7632.109-1~deb12u3143.0.7499.169-1~deb13u1145.0.7632.109-1~deb13u3145.0.7632.109-1
debian/sqlite3
3.34.1-33.34.1-3+deb11u13.40.1-2+deb12u23.46.1-73.46.1-9

Event History

Dec 14, 2018
Data Sourced
via Red Hat·08:24 AM
DescriptionSeverityAffected Software
Dec 21, 2018
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
Feb 19, 2026
Data Sourced
via Ubuntu·06:01 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·06:02 PM
Description
Feb 23, 2026
Data Sourced
via Debian·05:21 PM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

CVE-2018-20346

2

What is the severity of CVE-2018-20346?

The severity of CVE-2018-20346 is high (8.1).

3

Which versions of SQLite are affected by CVE-2018-20346?

SQLite versions up to and exclusive of 3.25.3 are affected by CVE-2018-20346.

4

How can remote attackers exploit CVE-2018-20346?

Remote attackers can exploit CVE-2018-20346 by leveraging the ability to run arbitrary SQL statements after crafted changes to FTS3 shadow tables, resulting in arbitrary code execution.

5

Are there any fixes available for CVE-2018-20346?

The fixed version for CVE-2018-20346 is 3.25.3.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203