CVE Database›Document archive›CVE-2019-16168

CVE-2019-16168

sqlite: Division by zero in whereLoopAddBtreeIndex in sqlite3.c

Loading…

Severity

Moderate

Red Hat Product Security

6.5

CVSS 3.0

Review impact separately from score.

Published · August 15, 2019

Updated · June 28, 2026

Description

In SQLite through 3.29.0, whereLoopAddBtreeIndex in sqlite3.c can crash a browser or other application because of missing validation of a sqlite_stat1 sz field, aka a "severe division by zero in the query planner."

Statement

The SQLite package as shipped with Red Hat Enterprise Linux 7 and previous versions are not affected by this flaw. The bug was introduced on sqlite-3.8.5 while Red Hat Enterprise Linux 7 and previous releases ships sqlite <= 3.7.17.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

An user can mitigate the risk of this vulnerability by:

  1. Avoid using ANALYZE command on queries;
  2. Disabling the PRAGMA optimize for affected SQLite instances;

CVSS / CWE

CVSS 3.0 · 6.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

CWE-369 · Divide By Zero