Cloudanix VulnDB

CVE-2019-19244

High · 7.5

CVSS

7.5

EPSS

3.6%

Published

Nov 25, 2019

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A problem in database software can let attackers remotely crash any programs that use it by sending a specially crafted request.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Moderate
Impact
Denial Of Service
Component
Library
Class
Denial of service
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability triggers a crash in sqlite3Select when processing a sub-select that combines DISTINCT, window functions, and specific ORDER BY clauses, resulting in denial of service via invalid memory access.

Why it matters to the business

Applications relying on SQLite can experience sudden unavailability from remote queries, causing operational downtime and potential service disruption without data loss or unauthorized access.

How an attack unfolds

An attacker identifies an application exposing SQLite queries and submits a crafted SQL statement containing a sub-select with DISTINCT, window functions, and ORDER BY to force the crash condition in the query processor.

How to fix it

Upgrade SQLite to the fixed commit e59c562b3f6894f84c715772c4b116d7b5c01348 or later stable release; rebuild and redeploy dependent applications after updating the library.

How to confirm the fix worked

Verify the deployed SQLite version or commit hash matches or exceeds the fixed revision; test the vulnerable query pattern to confirm it no longer causes a crash.

Typical attack path

  1. Locate an application or service that accepts and processes untrusted SQL queries against SQLite
  2. Construct a malicious sub-select query combining DISTINCT, window functions, and ORDER BY
  3. Submit the query over the network or application interface to trigger sqlite3Select
  4. Observe application or database process termination due to the crash

How to detect it

Inspect application and database logs for abrupt SQLite process terminations or segmentation faults during query processing; correlate with inbound queries containing window functions or DISTINCT clauses.

What your security team should do

  • Apply the upstream fix to all SQLite instances immediately given the remote unauthenticated attack vector
  • Review and restrict direct exposure of raw SQL query interfaces to untrusted clients
  • Monitor application logs for SQLite-related crashes and implement input validation on complex query constructs

The record

sqlite3Select in select.c in SQLite 3.30.1 allows a crash if a sub-select uses both DISTINCT and window functions, and also has certain ORDER BY usage.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 sqlite 0 3.28.0-r2
Alpine:v3.11 sqlite 0 3.30.1-r1
Alpine:v3.12 sqlite 0 3.30.1-r1
Alpine:v3.13 sqlite 0 3.30.1-r1
Alpine:v3.14 sqlite 0 3.30.1-r1
Alpine:v3.15 sqlite 0 3.30.1-r1
Alpine:v3.16 sqlite 0 3.30.1-r1
Alpine:v3.17 sqlite 0 3.30.1-r1
Alpine:v3.18 sqlite 0 3.30.1-r1
Alpine:v3.19 sqlite 0 3.30.1-r1
Alpine:v3.20 sqlite 0 3.30.1-r1
Alpine:v3.21 sqlite 0 3.30.1-r1
Alpine:v3.22 sqlite 0 3.30.1-r1
Alpine:v3.8 sqlite 0 3.25.3-r3
Alpine:v3.9 sqlite 0 3.28.0-r2
Debian:10 sqlite3 0 No fix
Debian:11 sqlite3 0 3.30.1+fossil191229-1
Debian:12 sqlite3 0 3.30.1+fossil191229-1
Debian:13 sqlite3 0 3.30.1+fossil191229-1
Mageia:7 sqlite3 0 3.31.1-1.mga7
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.3
Ubuntu:18.04:LTS sqlite3 0 3.22.0-1ubuntu0.2
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

Related vulnerabilities