CVE-2019-5018
An exploitable use after free vulnerability exists in the window function functionality of Sqlite3 3.26.0. A specially crafted SQL command can cause a use after free vulnerability, potentially resulting in remote code execution. An attacker can send a malicious SQL command to trigger this vulnerability.
What to do
Fixed builds are available from Alpine, Debian, Red Hat: see the table below for the fixed version per release.
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 16.04 | sqlite3 | Not affected vulnerable_code_not_present | ||
| Debian 14 | sqlite3 | Fixed | 3.27.2-3 | DEBIAN-CVE-2019-5018 |
| Debian 13 | sqlite3 | Fixed | 3.27.2-3 | DEBIAN-CVE-2019-5018 |
| Debian 12 | sqlite3 | Fixed | 3.27.2-3 | DEBIAN-CVE-2019-5018 |
| Red Hat Enterprise Linux 8 | lemon | Fixed | 0:3.26.0-11.el8 | RHSA-2020:4442 |
| Red Hat Enterprise Linux 8 | sqlite | Fixed | 0:3.26.0-11.el8 | RHSA-2020:4442 |
| Red Hat Enterprise Linux 8 | sqlite-devel | Fixed | 0:3.26.0-11.el8 | RHSA-2020:4442 |
| Red Hat Enterprise Linux 8 | sqlite-doc | Fixed | 0:3.26.0-11.el8 | RHSA-2020:4442 |
| Red Hat Enterprise Linux 8 | sqlite-libs | Fixed | 0:3.26.0-11.el8 | RHSA-2020:4442 |
| 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 | ||
| Alpine Linux 3.24 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.23 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.22 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.21 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.20 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.19 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.18 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.17 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.16 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.15 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.14 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.13 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.12 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.11 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.10 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
| Alpine Linux 3.9 | sqlite | Fixed | 3.28.0-r0 | ALPINE-CVE-2019-5018 |
What the vendor says
As published in the CVE record by talos, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Sqlite3: affected: SQLite 3.26.0, 3.27.0
Vendor advisories:
- https://security.gentoo.org/glsa/201908-09 (vendor-advisory)
- https://usn.ubuntu.com/4205-1/ (vendor-advisory)
References
- http://www.securityfocus.com/bid/108294
- https://security.gentoo.org/glsa/201908-09
- https://usn.ubuntu.com/4205-1/
- https://talosintelligence.com/vulnerability_reports/TALOS-2019-0777
- http://packetstormsecurity.com/files/152809/Sqlite3-Window-Function-Remote-Code-Execution.html
- https://security.netapp.com/advisory/ntap-20190521-0001/
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.