# CVE-2018-20346: lemon: SQLite before 3.25.3, when the FTS3 extension is enabled, encounters an integer overflow (and resultant buffer overfl...

CVE-2018-20346 is fixed in 4 products on 1 platform, first by lemon 3.22.0-1ubuntu0.1, released May 30, 2019. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2018-20346
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.1023
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Dec 20, 2018

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | lemon Ubuntu 18.04.6 LTS (bionic) | 3.22.0-1ubuntu0.1 | [lemon 3.22.0-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-lemon-3.22.0-1ubuntu0.1.md) | May 30, 2019 |
| Linux | libsqlite3-0 Ubuntu 18.04.6 LTS (bionic) | 3.22.0-1ubuntu0.1 | [libsqlite3-0 3.22.0-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libsqlite3-0-3.22.0-1ubuntu0.1.md) | May 30, 2019 |
| Linux | libsqlite3-tcl Ubuntu 18.04.6 LTS (bionic) | 3.22.0-1ubuntu0.1 | [libsqlite3-tcl 3.22.0-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libsqlite3-tcl-3.22.0-1ubuntu0.1.md) | May 30, 2019 |
| Linux | sqlite3 Ubuntu 18.04.6 LTS (bionic) | 3.22.0-1ubuntu0.1 | [sqlite3 3.22.0-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-sqlite3-3.22.0-1ubuntu0.1.md) | May 30, 2019 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
