CVE-2018-20505: SQL Injection

Published Jan 22, 2019
·
Updated

Last updated 25 August 2025

Other sources

SQLite 3.25.2 when queries are run on a table with a malformed PRIMARY KEY allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).

Microsoft

SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers to cause a denial of service (application crash) by leveraging the ability to run arbitrary SQL statements (such as in certain WebSQL use cases).

Launchpad

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

Credit

Tencent Blade Team

Affected Software

21 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
Apple iTunes for Windows<12.9.3
12.9.3
Apple iOS<12.1.3
12.1.3
SQLite SQLite<=3.25.2
Apple iPhone OS<12.1.3
Apple iOS and macOS<10.14.2
Apple WatchOS<5.1.3
All of the following
Any of the following
Apple iCloud<7.10
Apple iTunes<12.9.3
Microsoft Windows
Apple iCloud<7.10
Apple iTunes<12.9.3
Microsoft Windows
debian/sqlite3
3.34.1-33.34.1-3+deb11u13.40.1-2+deb12u13.46.1-33.46.1-4
Microsoft azl3 ceph 18.2.1-1
Microsoft azl3 ceph 16.2.10-3

Event History

Apr 3, 2019
CVE Published
via MITRE·05:51 PM
Data Sourced
via MITRE·05:51 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·10:58 PM
Description
Jun 30, 2024
Data Sourced
via Microsoft·02:00 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·02:00 PM
Affected Software
Updated
via Microsoft·02:00 PM
Affected Software
Updated
via Microsoft·02:00 PM
DescriptionSeverity
Feb 19, 2026
Data Sourced
via Ubuntu·06:01 PM
RemedyDescriptionSeverityAffected 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 for this SQLite vulnerability?

The vulnerability ID for this SQLite vulnerability is CVE-2018-20505.

2

What is the severity of CVE-2018-20505?

The severity of CVE-2018-20505 is high.

3

How does CVE-2018-20505 affect SQLite?

CVE-2018-20505 affects SQLite 3.25.2 when queries are run on a table with a malformed PRIMARY KEY, allowing remote attackers to cause a denial of service (application crash) by running arbitrary SQL statements.

4

Which software versions are affected by CVE-2018-20505?

The affected software versions by CVE-2018-20505 include SQLite 3.25.2, Apple iPhone OS up to 12.1.3, Apple macOS up to 10.14.2, Apple watchOS up to 5.1.3, Apple iCloud up to 7.10, and Apple iTunes up to 12.9.3.

5

How can I mitigate the CVE-2018-20505 vulnerability?

To mitigate the CVE-2018-20505 vulnerability, it is recommended to update SQLite to a version that includes the fix or apply the necessary patches provided by the software vendor.

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