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

Published Nov 17, 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.

Affected Software

1 affected componentFixes available
bitnami/sqlite<3.54.0
3.54.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade bitnami/sqlite to a version that resolves this vulnerability.

    Fixed in 3.54.0

Event History

Nov 17, 2026
Advisory Published
via OSV·12:00 PM
Data Sourced
via OSV·12:00 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this denial-of-service issue?

Host processes using SQLite before 3.54.0 are exposed when an attacker can supply SQL input or provide a database file containing a crafted view. The impact described is a crash of the host process.

2

What crafted input is needed to trigger the crash?

The trigger is a count(*) operation over a large multi-row VALUES clause, including through a crafted view. This creates deeply nested TK_PLUS expressions whose recursive cleanup can exhaust the C stack.

3

Is user interaction required for exploitation?

Yes. The supplied vector indicates user interaction is required. The attacker must also be able to get crafted SQL or a crafted database file processed by the affected host process.

4

What is the remediation?

Update SQLite to version 3.54.0 or later. The affected range is SQLite versions before 3.54.0.

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