CLI crash via unchecked appendvfs cleanup
Published May 9, 2023 · Updated May 5, 2025
A NULL-pointer dereference in SQLite CLI 3.35.4 allows local users with unrestricted shell access to crash the process. In appendvfs apndOpen, a failed base-VFS open leaves pBaseFile->pMethods unset, yet error cleanup calls its xClose method. The extension is outside the core library, and reachability requires CLI control of an append operation against a nonexistent file.
Summary
What happened
A NULL-pointer dereference in SQLite CLI 3.35.4 allows local users with unrestricted shell access to crash the process. In appendvfs apndOpen, a failed base-VFS open leaves pBaseFile->pMethods unset, yet error cleanup calls its xClose method. The extension is outside the core library, and reachability requires CLI control of an append operation against a nonexistent file.
The record
- CVE
- CVE-2021-31239
- Published
- May 9, 2023
- Updated
- May 5, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-125, T1499
- Attack vector
- local
- Privileges
- Unavailable
Timeline
How it unfolded
- May 9, 2023CVE publishedPublication date reported by the CVE source.
- May 5, 2025Record 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.
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.
Public exploit references
- SQLite appendvfs CLI proof of conceptproof of concept · unverified
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