Back

MEDIUM

sqlite: Division by zero in whereLoopAddBtreeIndex in sqlite3.c

Published Sep 9, 2019

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."

Affected products

Remediation

Red Hat 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.

Red Hat 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;

Weaknesses (1)

References (22)

Change history (0)

No recorded changes yet.

Sources

CVE.org / MITRE

Status PUBLISHED
Assigner mitre
Published Sep 9, 2019
Updated May 28, 2026
Reserved Sep 9, 2019

CISA Vulnrichment

Updated May 28, 2026

NVD

Status Modified
Modified Jun 17, 2026

Red Hat

Severity Moderate
Public date Aug 15, 2019
Bugzilla 1768986

ENISA EUVD

Assigner mitre
Published Sep 9, 2019
Updated May 28, 2026

GitHub

No data