Home / Sqlite / Sqlite / CVE-2018-20506
CVE-2018-20506: is it exploited, and which versions of Sqlite are affected and fixed?
CVE-2018-20506 is an integer overflow vulnerability in Sqlite. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:38 UTC). Affected: sqlite before 3.25.3, iphone os before 12.1.3, mac os x before 10.14.3 and 5 more (NVD). Fixed in 3.25.3, 12.1.3, 10.14.3, 12.1.2 and 1 more (NVD). Severity: High (8.1, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:24 UTC.
What is CVE-2018-20506?
SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overflow) for FTS3 queries in a "merge" operation that occurs 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). This is a different vulnerability than CVE-2018-20346.
From the CVE record by mitre, last updated August 5, 2024, 12:05 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| sqlite | sqlite | before 3.25.3 | application |
| apple | iphone os | before 12.1.3 | operating system |
| apple | mac os x | before 10.14.3 | operating system |
| apple | tvos | before 12.1.2 | operating system |
| apple | watchos | before 5.1.3 | operating system |
| apple | icloud | through 7.10 | application |
| apple | itunes | through 12.9.3 | application |
| opensuse | leap | 42.3 | operating system |
NVD analysis (status Modified), last modified June 17, 2026, 01:52 UTC.
How severe is CVE-2018-20506?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.0 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-20506 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 7.56% probability of exploitation activity in the next 30 days, percentile 94.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-190 Integer Overflow or Wraparound
Where are the vendor advisories and references?
- https://sqlite.org/src/info/940f2adc8541a838 x_refsource_MISC
- http://seclists.org/fulldisclosure/2019/Jan/62 x_refsource_MISC
- http://seclists.org/fulldisclosure/2019/Jan/64 x_refsource_MISC
- http://seclists.org/fulldisclosure/2019/Jan/66 x_refsource_MISC
- http://seclists.org/fulldisclosure/2019/Jan/67 x_refsource_MISC
- http://seclists.org/fulldisclosure/2019/Jan/68 x_refsource_MISC
- http://seclists.org/fulldisclosure/2019/Jan/69 x_refsource_MISC
- http://www.securityfocus.com/bid/106698 x_refsource_MISC
- https://seclists.org/bugtraq/2019/Jan/28 x_refsource_MISC
- https://seclists.org/bugtraq/2019/Jan/29 x_refsource_MISC
- https://seclists.org/bugtraq/2019/Jan/31 x_refsource_MISC
- https://seclists.org/bugtraq/2019/Jan/32 x_refsource_MISC
- https://seclists.org/bugtraq/2019/Jan/33 x_refsource_MISC
- https://seclists.org/bugtraq/2019/Jan/39 x_refsource_MISC
- https://support.apple.com/kb/HT209443 x_refsource_MISC
- https://support.apple.com/kb/HT209446 x_refsource_MISC
- https://support.apple.com/kb/HT209447 x_refsource_MISC
- https://support.apple.com/kb/HT209448 x_refsource_MISC
- https://support.apple.com/kb/HT209450 x_refsource_MISC
- https://support.apple.com/kb/HT209451 x_refsource_MISC
- openSUSE-SU-2019:1222 vendor-advisory, x_refsource_SUSE
- https://security.netapp.com/advisory/ntap-20190502-0004/ x_refsource_CONFIRM
- USN-4019-1 vendor-advisory, x_refsource_UBUNTU
- USN-4019-2 vendor-advisory, x_refsource_UBUNTU
- https://www.oracle.com/security-alerts/cpuapr2020.html x_refsource_MISC
- [debian-lts-announce] 20200822 [SECURITY] [DLA 2340-1] sqlite3 security update mailing-list, x_refsource_MLIST
- https://kc.mcafee.com/corporate/index?page=content&id=SB10365 x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- December 26, 2018
- Published
- April 3, 2019, 17:50 UTC
- CVE record updated
- August 5, 2024, 12:05 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 01:52 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:24 UTC; KEV December 3, 2026, 09:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Sqlite?
- Oct 30, 2026CVE-2026-119591 SQLite: uncontrolled recursion
- Oct 30, 2026CVE-2026-119586 SQLite: command injection
- Oct 30, 2026CVE-2026-119379 SQLite: out-of-bounds write (memory corruption)
- Oct 30, 2026CVE-2026-119378 SQLite: use after free
- Oct 30, 2026CVE-2026-119377 SQLite: incorrect authorization
- Oct 30, 2026CVE-2026-119376 SQLite: uncontrolled recursion
- Oct 30, 2026CVE-2026-119375 SQLite: use of uninitialized resource
- Oct 30, 2026CVE-2026-119374 SQLite: out-of-bounds write (memory corruption)
Questions about CVE-2018-20506
Is CVE-2018-20506 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:38 UTC. FIRST's EPSS gives it a 7.56% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Sqlite are affected by CVE-2018-20506?
sqlite before 3.25.3, iphone os before 12.1.3, mac os x before 10.14.3, tvos before 12.1.2, watchos before 5.1.3, icloud through 7.10 and 2 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2018-20506?
3.25.3, 12.1.3, 10.14.3, 12.1.2 and 5.1.3, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-20506?
High (8.1, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-20506?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.