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

Affected Software

20 affected componentsFixes available
SQLite SQLite<3.54.0
debian/sqlite3*
debian/sqlite3*
debian/sqlite3<3.54.1-1
3.54.1-1
bitnami/sqlite<3.54.0
3.54.0
debian/sqlite3<=3.40.1-2+deb12u2, <=3.46.1-7+deb13u2
3.54.1-1
All of the following
azurelinux/sqlite<3.44.0-5
3.44.0-5
Microsoft Azure Linux=3.0
ubuntu/sqlite*
ubuntu/sqlite3*
ubuntu/sqlite3*
ubuntu/sqlite*
ubuntu/sqlite3*
ubuntu/sqlite*
ubuntu/sqlite3*
ubuntu/sqlite*
ubuntu/sqlite*
ubuntu/sqlite3*
ubuntu/sqlite3*
ubuntu/sqlite3*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/sqlite3 to a version that resolves this vulnerability.

    Fixed in 3.54.1-1
  2. Upgrade

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

    Fixed in 3.54.0
  3. Upgrade

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

    Fixed in 3.44.0-5

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
Data Sourced
via Red Hat·01:09 PM
DescriptionSeverityAffected Software
Oct 31, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:05 AM
Affected Software
Nov 1, 2026
Data Sourced
via OSV·09:00 AM
Affected Software
Nov 3, 2026
Data Sourced
via NVD·03:22 PM
RemedyAffected Software
Nov 4, 2026
Exploit Published
via CISA·10:23 PM
Nov 5, 2026
Updated
via OSV·10:00 AM
Severity
Nov 12, 2026
Updated
via OSV·11:00 PM
Affected Software
Nov 17, 2026
Advisory Published
via OSV·12:00 PM
Nov 25, 2026
Updated
via OSV·06:15 AM
Affected Software

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