Division by zero in SQLite - CVE-2019-16168

 

Division by zero in SQLite - CVE-2019-16168

Published: December 2, 2019 / Updated: June 20, 2021


Vulnerability identifier: #VU23188
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/U:Clear
CVE-ID: CVE-2019-16168
CWE-ID: CWE-369
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: SQLite
Affected software:
SQLite

Detailed vulnerability description

The vulnerability allows a remote attacker to perform a denial of service attack.

The vulnerability exists due to a division by zero error within the whereLoopAddBtreeIndex in sqlite3.c due to improper input validation in the sqlite_stat1 sz field. A remote attacker can pass specially crafted data to the application, trigger division by zero error and crash the vulnerable application.


How to mitigate CVE-2019-16168

Install updates from vendor's website.

Sources