Cloudanix VulnDB

CVE-2019-19242

Medium · 5.9

CVSS

5.9

EPSS

2.7%

Published

Nov 27, 2019

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Identify an application using the vulnerable SQLite version
  2. Craft a SQL query or database schema that exercises the TK_COLUMN expression code path
  3. Trigger sqlite3ExprCodeTarget to dereference the invalid pExpr->y.pTab pointer
  4. 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