CVE-2026-119591: SQLite before 3.54.0 Stack Exhaustion via countOfViewOptimization() in VALUES Clause

Published Oct 30, 2026
·
Updated

SQLite before 3.54.0 contains a stack exhaustion vulnerability in countOfViewOptimization() that allows attackers to crash the host process via count() over a large multi-row VALUES clause. Attackers supplying SQL or a database file with a crafted view can trigger deeply nested TKPLUS expressions whose recursive freeing in sqlite3ExprDeleteNN() exhausts the C stack, causing denial of service.

Other sources

SQLite before 3.54.0 Stack Exhaustion via countOfViewOptimization() in VALUES Clause

— Microsoft

Event History

Oct 30, 2026
CVE Published
via MITRE·11:31 AM
Data Sourced
via MITRE·11:31 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:16 PM
DescriptionSeverityWeakness
Oct 31, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Applications using SQLite before 3.54.0 are exposed if they process attacker-supplied SQL or open a database file containing an attacker-crafted view. The impact described is a crash of the host process.

2

What does an attacker need to trigger the crash?

The attacker needs a path to supply SQL, or to provide a database file with a crafted view. The trigger uses count(*) over a large multi-row VALUES clause, producing deeply nested TK_PLUS expressions.

3

Are confidentiality or data-integrity impacts described?

No. The provided vector and description identify availability impact through stack exhaustion and host-process denial of service, with no confidentiality or integrity impact stated.

4

How can I determine whether my deployment is affected?

Check whether the SQLite version in use is earlier than 3.54.0 and whether the application accepts untrusted SQL or untrusted SQLite database files. Those conditions match the affected versions and attack paths described.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203