CVE-2019-19242
Medium · 5.9CVSS
5.9
EPSS
2.7%
Published
Nov 27, 2019
CISA due date
—
Cloudanix analysis
A bug in database software used by many applications can cause crashes when handling unusual data queries, though the problem is old and difficult to trigger.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- High
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Mishandling of the pExpr->y.pTab pointer in the TK_COLUMN case within sqlite3ExprCodeTarget (expr.c) results in invalid pointer dereference or memory corruption during expression code generation.
Why it matters to the business
Applications relying on the affected SQLite version may experience crashes or denial of service when processing specially crafted queries; the issue is long-published with low exploit likelihood and no known ransomware use, reducing immediate operational risk.
How an attack unfolds
An attacker supplies a crafted SQL statement or database file that reaches the TK_COLUMN expression handling path, causing the mishandled pointer to trigger memory corruption; no named threat actors or active campaigns are associated with this flaw.
How to fix it
Upgrade sqlite/sqlite (GIT) to commit 57f7ece78410a8aae86aa4625fb7556897db384c or later; rebuild dependent applications against the patched library.
How to confirm the fix worked
Confirm the SQLite library reports a version or commit after 57f7ece78410a8aae86aa4625fb7556897db384c; execute regression tests covering expression code generation and TK_COLUMN cases.
Typical attack path
- Identify an application using the vulnerable SQLite version
- Craft a SQL query or database schema that exercises the TK_COLUMN expression code path
- Trigger sqlite3ExprCodeTarget to dereference the invalid pExpr->y.pTab pointer
- Induce memory corruption leading to process crash or instability
How to detect it
Review application logs for SQLite crashes or assertion failures around expression processing; no specific post-exploitation artifacts are known due to absence of public exploitation.
What your security team should do
- Prioritize upgrade of SQLite in all affected products given the 2019 publication date
- Scan build pipelines and dependency manifests for the vulnerable commit hash
- Monitor downstream dependents for new SQLite releases incorporating the fix
- Review application query patterns that may reach expression handling code paths
The record
SQLite 3.30.1 mishandles pExpr->y.pTab, as demonstrated by the TK_COLUMN case in sqlite3ExprCodeTarget in expr.c.
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: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 |
| Ubuntu:16.04:LTS | sqlite3 | 0 | 3.11.0-1ubuntu1.3 |
| Ubuntu:18.04:LTS | sqlite3 | 0 | 3.22.0-1ubuntu0.2 |
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-19244 sqlite3Select in select.c in SQLite 3.30.1 allows a crash if a sub-select uses both… 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