CVE-2019-19244
High · 7.5CVSS
7.5
EPSS
3.6%
Published
Nov 25, 2019
CISA due date
—
Cloudanix analysis
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
- Locate an application or service that accepts and processes untrusted SQL queries against SQLite
- Construct a malicious sub-select query combining DISTINCT, window functions, and ORDER BY
- Submit the query over the network or application interface to trigger sqlite3Select
- 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
- CVE-2020-11655 SQLite through 3.31.1 allows attackers to cause a denial of service (segmentation fault)… Also affects sqlite
- CVE-2019-19242 SQLite 3.30.1 mishandles pExpr->y.pTab, as demonstrated by the TK_COLUMN case in… Also affects sqlite
- CVE-2019-16168 In SQLite through 3.29.0, whereLoopAddBtreeIndex in sqlite3.c can crash a browser or… Also affects sqlite
- CVE-2019-8457 SQLite3 from 3.6.0 to and including 3.27.2 is vulnerable to heap out-of-bound read in the… Also affects sqlite
- CVE-2019-5018 An exploitable use after free vulnerability exists in the window function functionality… Also affects sqlite
- CVE-2022-35737 SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if… Also affects sqlite
- CVE-2025-29087 Sqlite 3.49.0 is susceptible to integer overflow through the concat function. Also affects sqlite
- CVE-2025-6965 There exists a vulnerability in SQLite versions before 3.50.2 where the number of… Also affects sqlite