Program crash via printf buffer-size overflow
Published Aug 3, 2022 · Updated Feb 13, 2026
Array-bounds overflow in SQLite 1.0.12 through 3.39.x before 3.39.2 allows attackers to crash applications via oversized C API strings. In sqlite3_str_vappendf, signed addition of the input length and quote count can wrap negative, selecting a 70-byte stack buffer before a much larger string is copied for %q, %Q, or %w formatting. Reachability requires an application to pass a string larger than 2 GB through an auxiliary printf-style C API; SQL and malformed database files cannot trigger the flaw, while ! formatting can hang the process or overwrite a saved return address on some 64-bit builds.
Summary
What happened
Array-bounds overflow in SQLite 1.0.12 through 3.39.x before 3.39.2 allows attackers to crash applications via oversized C API strings. In sqlite3_str_vappendf, signed addition of the input length and quote count can wrap negative, selecting a 70-byte stack buffer before a much larger string is copied for %q, %Q, or %w formatting. Reachability requires an application to pass a string larger than 2 GB through an auxiliary printf-style C API; SQL and malformed database files cannot trigger the flaw, while ! formatting can hang the process or overwrite a saved return address on some 64-bit builds.
The record
- CVE
- CVE-2022-35737
- Published
- Aug 3, 2022
- Updated
- Feb 13, 2026
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-129
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Aug 3, 2022CVE publishedPublication date reported by the CVE source.
- Feb 13, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Trail of Bits sqlite3-2022-vappendf proofs of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo