# CVE-2018-20505: iTunes: SQLite 3.25.2, when queries are run on a table with a malformed PRIMARY KEY, allows remote attackers…

CVE-2018-20505 is fixed in 5 products on 2 platforms, first by lemon 3.22.0-1ubuntu0.1, released May 30, 2019. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2018-20505
- Priority: High
- CVSS: 7.5 (Low)
- EPSS: 0.0690
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 2, 2019
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2018-20505

## Description

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).

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | iTunes | 12.11.4.15 | [iTunes 12.11.4.15](https://patchblox.com/security/data/fix/windows-app/apple.itunes-12.11.4.15.md) | Aug 4, 2021 |
| 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.
