CVE-2020-13632
Medium · 5.5CVSS
5.5
EPSS
0.6%
Published
May 27, 2020
CISA due date
—
Cloudanix analysis
A flaw in the SQLite database engine can let someone crash programs that use it for searching text, causing temporary outages until the software is updated.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
NULL pointer dereference in ext/fts3/fts3_snippet.c triggered by a crafted matchinfo() query on an FTS3 table, resulting in application crash (denial of service).
Why it matters to the business
Applications relying on SQLite for full-text search can be forced offline, interrupting services and requiring restarts or patches; low exploitability limits widespread impact but still affects database-dependent systems.
How an attack unfolds
An attacker with local database access crafts a malicious SQL statement using matchinfo() against an FTS3 virtual table; the malformed input reaches the vulnerable snippet handling code and dereferences a NULL pointer, crashing the process.
How to fix it
Upgrade SQLite to a version containing commit 0b0274a90c68a20c3dcab0b9f5719adda9402117 or later; rebuild and redeploy any applications statically or dynamically linking the vulnerable library.
How to confirm the fix worked
Confirm the running SQLite library version reports a fix after 3.32.0 or includes the referenced commit; attempt reproduction of the original matchinfo() query in a test environment and verify the process no longer crashes.
Typical attack path
- Obtain local or application-level access to execute arbitrary SQL against the SQLite database.
- Create or identify an FTS3 virtual table.
- Submit a crafted matchinfo() query designed to trigger the NULL dereference in fts3_snippet.c.
- Observe process termination or repeated crashes leading to denial of service.
How to detect it
Inspect application and system logs for SQLite crashes or segmentation faults occurring during FTS3-related query processing; correlate with unusual matchinfo() usage patterns in query logs.
What your security team should do
- Prioritize patching SQLite in all environments to the fixed commit within standard maintenance windows.
- Review and restrict SQL execution privileges for untrusted users or applications to limit query crafting opportunities.
- Monitor for abnormal SQLite process terminations or crashes in logs after any suspected exposure.
The record
ext/fts3/fts3_snippet.c in SQLite before 3.32.0 has a NULL pointer dereference via a crafted matchinfo() query.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| AlmaLinux:8 | mingw-binutils-generic | 0 | 2.30-3.el8 |
| AlmaLinux:8 | mingw-filesystem-base | 0 | 104-2.el8 |
| AlmaLinux:8 | mingw32-binutils | 0 | 2.30-3.el8 |
| AlmaLinux:8 | mingw32-bzip2 | 0 | 1.0.6-14.el8 |
| AlmaLinux:8 | mingw32-bzip2-static | 0 | 1.0.6-14.el8 |
| AlmaLinux:8 | mingw32-filesystem | 0 | 104-2.el8 |
| AlmaLinux:8 | mingw32-sqlite | 0 | 3.26.0.0-1.el8 |
| AlmaLinux:8 | mingw32-sqlite-static | 0 | 3.26.0.0-1.el8 |
| AlmaLinux:8 | mingw64-binutils | 0 | 2.30-3.el8 |
| AlmaLinux:8 | mingw64-bzip2 | 0 | 1.0.6-14.el8 |
| AlmaLinux:8 | mingw64-bzip2-static | 0 | 1.0.6-14.el8 |
| AlmaLinux:8 | mingw64-filesystem | 0 | 104-2.el8 |
| AlmaLinux:8 | mingw64-sqlite | 0 | 3.26.0.0-1.el8 |
| AlmaLinux:8 | mingw64-sqlite-static | 0 | 3.26.0.0-1.el8 |
| Bitnami | sqlite | 0 | 3.32.0 |
| Debian:11 | sqlite3 | 0 | 3.32.0-1 |
| Debian:12 | sqlite3 | 0 | 3.32.0-1 |
| Debian:13 | sqlite3 | 0 | 3.32.0-1 |
| Debian:14 | sqlite3 | 0 | 3.32.0-1 |
| Debian:9 | sqlite3 | 0 | 3.16.2-5+deb9u2 |
| Mageia:7 | sqlite3 | 0 | 3.31.1-1.1.mga7 |
| Red Hat:enterprise_linux:8::appstream | lemon | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | lemon-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | sqlite | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | sqlite-analyzer-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | sqlite-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | sqlite-debugsource | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | sqlite-devel | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | sqlite-doc | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | sqlite-libs | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | sqlite-libs-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::appstream | sqlite-tcl-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | lemon | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | lemon-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | sqlite | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | sqlite-analyzer-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | sqlite-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | sqlite-debugsource | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | sqlite-devel | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | sqlite-doc | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | sqlite-libs | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | sqlite-libs-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::baseos | sqlite-tcl-debuginfo | 0 | 0:3.26.0-11.el8 |
| Red Hat:enterprise_linux:8::crb | mingw-binutils | 0 | 0:2.30-3.el8 |
| Red Hat:enterprise_linux:8::crb | mingw-binutils-debuginfo | 0 | 0:2.30-3.el8 |
| Red Hat:enterprise_linux:8::crb | mingw-binutils-debugsource | 0 | 0:2.30-3.el8 |
| Red Hat:enterprise_linux:8::crb | mingw-binutils-generic | 0 | 0:2.30-3.el8 |
| Red Hat:enterprise_linux:8::crb | mingw-binutils-generic-debuginfo | 0 | 0:2.30-3.el8 |
| Red Hat:enterprise_linux:8::crb | mingw-bzip2 | 0 | 0:1.0.6-14.el8 |
| Red Hat:enterprise_linux:8::crb | mingw-filesystem | 0 | 0:104-2.el8 |
| Red Hat:enterprise_linux:8::crb | mingw-filesystem-base | 0 | 0:104-2.el8 |
| Red Hat:enterprise_linux:8::crb | mingw-sqlite | 0 | 0:3.26.0.0-1.el8 |
| Red Hat:enterprise_linux:8::crb | mingw32-binutils | 0 | 0:2.30-3.el8 |
| Red Hat:enterprise_linux:8::crb | mingw32-binutils-debuginfo | 0 | 0:2.30-3.el8 |
| Red Hat:enterprise_linux:8::crb | mingw32-bzip2 | 0 | 0:1.0.6-14.el8 |
| Red Hat:enterprise_linux:8::crb | mingw32-bzip2-debuginfo | 0 | 0:1.0.6-14.el8 |
| Red Hat:enterprise_linux:8::crb | mingw32-bzip2-static | 0 | 0:1.0.6-14.el8 |
| Red Hat:enterprise_linux:8::crb | mingw32-filesystem | 0 | 0:104-2.el8 |
| Red Hat:enterprise_linux:8::crb | mingw32-sqlite | 0 | 0:3.26.0.0-1.el8 |
| Red Hat:enterprise_linux:8::crb | mingw32-sqlite-debuginfo | 0 | 0:3.26.0.0-1.el8 |
| Red Hat:enterprise_linux:8::crb | mingw32-sqlite-static | 0 | 0:3.26.0.0-1.el8 |
| Red Hat:enterprise_linux:8::crb | mingw64-binutils | 0 | 0:2.30-3.el8 |
| Red Hat:enterprise_linux:8::crb | mingw64-binutils-debuginfo | 0 | 0:2.30-3.el8 |
| Red Hat:enterprise_linux:8::crb | mingw64-bzip2 | 0 | 0:1.0.6-14.el8 |
| Red Hat:enterprise_linux:8::crb | mingw64-bzip2-debuginfo | 0 | 0:1.0.6-14.el8 |
| Red Hat:enterprise_linux:8::crb | mingw64-bzip2-static | 0 | 0:1.0.6-14.el8 |
| Red Hat:enterprise_linux:8::crb | mingw64-filesystem | 0 | 0:104-2.el8 |
| Red Hat:enterprise_linux:8::crb | mingw64-sqlite | 0 | 0:3.26.0.0-1.el8 |
| Red Hat:enterprise_linux:8::crb | mingw64-sqlite-debuginfo | 0 | 0:3.26.0.0-1.el8 |
| Red Hat:enterprise_linux:8::crb | mingw64-sqlite-static | 0 | 0:3.26.0.0-1.el8 |
| SUSE:Enterprise Storage 6 | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:HPE Helion OpenStack 8 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOS | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise High Performance Computing 15-ESPOS | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise High Performance Computing 15-LTSS | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise Micro 5.0 | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP2 | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 12 SP3-BCL | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 12 SP3-LTSS | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 12 SP5 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 15 SP1-BCL | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise Server 15 SP1-LTSS | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise Server 15-LTSS | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Manager Proxy 4.0 | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Manager Retail Branch Server 4.0 | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:Manager Server 4.0 | sqlite3 | 0 | 3.36.0-3.12.1 |
| SUSE:OpenStack Cloud 8 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:OpenStack Cloud 9 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:OpenStack Cloud Crowbar 8 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:OpenStack Cloud Crowbar 9 | sqlite3 | 0 | 3.36.0-9.18.1 |
| Ubuntu:16.04:LTS | sqlite3 | 0 | 3.11.0-1ubuntu1.5 |
| Ubuntu:18.04:LTS | sqlite3 | 0 | 3.22.0-1ubuntu0.4 |
| Ubuntu:20.04:LTS | sqlite3 | 0 | 3.31.1-4ubuntu0.1 |
| openSUSE:Leap 15.2 | sqlite3 | 0 | 3.36.0-lp152.4.3.1 |
| openSUSE:Leap 15.3 | sqlite3 | 0 | 3.36.0-3.12.1 |
| openSUSE:Tumbleweed | sqlite3 | 0 | 3.36.0-1.2 |
Related vulnerabilities
- CVE-2020-13631 SQLite before 3.32.0 allows a virtual table to be renamed to the name of one of its… Also affects mingw-binutils-generic
- CVE-2020-13630 ext/fts3/fts3.c in SQLite before 3.32.0 has a use-after-free in fts3EvalNextRow, related… Also affects mingw-binutils-generic
- CVE-2019-16168 In SQLite through 3.29.0, whereLoopAddBtreeIndex in sqlite3.c can crash a browser or… Also affects mingw-binutils-generic
- CVE-2025-6965 There exists a vulnerability in SQLite versions before 3.50.2 where the number of… Also affects mingw32-sqlite
- CVE-2025-7458 An integer overflow in the sqlite3KeyInfoFromExprList function in SQLite versions 3.39.2… Also affects sqlite
- CVE-2025-3277 An integer overflow can be triggered in SQLite’s `concat_ws()` function. Also affects sqlite
- CVE-2025-29088 An issue in sqlite v.3.49.0 allows an attacker to cause a denial of service via the… Also affects sqlite
- CVE-2025-29087 Sqlite 3.49.0 is susceptible to integer overflow through the concat function. Also affects sqlite