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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | sqlite3 | Fixed | 3.22.0-1ubuntu0.1 | UBUNTU-CVE-2018-20506 |
| Ubuntu 16.04 | sqlite3 | Fixed | 3.11.0-1ubuntu1.2 | UBUNTU-CVE-2018-20506 |
| Ubuntu 14.04 | sqlite3 | Fix pending | 3.8.2-1ubuntu2.2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2018-20506 |
| Debian 14 | sqlite3 | Fixed | 3.25.3-1 | DEBIAN-CVE-2018-20506 |
| Debian 13 | sqlite3 | Fixed | 3.25.3-1 | DEBIAN-CVE-2018-20506 |
| Debian 12 | sqlite3 | Fixed | 3.25.3-1 | DEBIAN-CVE-2018-20506 |
| Red Hat Enterprise Linux 8 | lemon | Not affected | ||
| Red Hat Enterprise Linux 8 | sqlite | Not affected | ||
| Red Hat Enterprise Linux 8 | sqlite-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | sqlite-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | sqlite-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | lemon | Not affected | ||
| Red Hat Enterprise Linux 7 | sqlite | Not affected | ||
| Red Hat Enterprise Linux 7 | sqlite-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | sqlite-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | sqlite-tcl | Not affected | ||
| Red Hat Enterprise Linux 6 | lemon | Not affected | ||
| Red Hat Enterprise Linux 6 | sqlite | Not affected | ||
| Red Hat Enterprise Linux 6 | sqlite-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | sqlite-doc | Not affected | ||
| Red Hat Enterprise Linux 6 | sqlite-tcl | Not affected | ||
| Red Hat Enterprise Linux 5 | sqlite | Not affected |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00070.html (vendor-advisory)
- https://usn.ubuntu.com/4019-1/ (vendor-advisory)
- https://usn.ubuntu.com/4019-2/ (vendor-advisory)
References
- https://sqlite.org/src/info/940f2adc8541a838
- http://seclists.org/fulldisclosure/2019/Jan/62
- http://seclists.org/fulldisclosure/2019/Jan/64
- http://seclists.org/fulldisclosure/2019/Jan/66
- http://seclists.org/fulldisclosure/2019/Jan/67
- http://seclists.org/fulldisclosure/2019/Jan/68
- http://seclists.org/fulldisclosure/2019/Jan/69
- http://www.securityfocus.com/bid/106698
- https://seclists.org/bugtraq/2019/Jan/28
- https://seclists.org/bugtraq/2019/Jan/29
- https://seclists.org/bugtraq/2019/Jan/31
- https://seclists.org/bugtraq/2019/Jan/32
- https://seclists.org/bugtraq/2019/Jan/33
- https://seclists.org/bugtraq/2019/Jan/39
- https://support.apple.com/kb/HT209443
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.