Cloudanix VulnDB

CVE-2020-13630

High · 7.0

CVSS

7.0

EPSS

1.0%

Published

May 27, 2020

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in the text-search part of SQLite lets an attacker who can feed a specially made database file to a program running on the same computer potentially take full control of that program.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
High
Impact
Full Compromise
Component
Library
Class
Use After Free
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Use-after-free in fts3EvalNextRow within ext/fts3/fts3.c triggered by the snippet feature, enabling memory corruption that can lead to arbitrary code execution.

Why it matters to the business

Applications relying on SQLite full-text search may experience crashes or remote code execution when handling attacker-controlled database files, risking data exposure or service disruption.

How an attack unfolds

An attacker supplies a crafted SQLite database containing FTS3 tables and issues queries that invoke the snippet feature, causing the use-after-free during row evaluation to corrupt memory and achieve code execution.

How to fix it

Upgrade to SQLite 3.32.0 or later; apply the fix from commit 0b0274a90c68a20c3dcab0b9f5719adda9402117 in the sqlite/sqlite GIT repository.

How to confirm the fix worked

Confirm the running SQLite version is 3.32.0 or newer; exercise FTS3 snippet queries against edge-case databases to verify absence of crashes or memory errors.

Typical attack path

  1. Create or modify an SQLite database with FTS3-enabled tables and specially formed content
  2. Execute queries that call the snippet function on FTS3 data
  3. Trigger fts3EvalNextRow to dereference freed memory
  4. Leverage resulting memory corruption for code execution or denial of service

How to detect it

Monitor application logs for SQLite FTS3-related crashes or segmentation faults; review database access patterns for unusual snippet queries on untrusted files.

What your security team should do

  • Immediately upgrade all SQLite installations to the fixed version
  • Audit applications for use of FTS3 and disable the feature where possible until patched
  • Scan for and replace any bundled or embedded SQLite instances
  • Add version checks and dependency scanning to build pipelines

The record

ext/fts3/fts3.c in SQLite before 3.32.0 has a use-after-free in fts3EvalNextRow, related to the snippet feature.

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