CVE-2025-6965 is a memory-corruption vulnerability in SQLite affecting versions before 3.50.2. The flaw is in the query compilation subsystem, specifically the findOrCreateAggInfoColumn function in src/expr.c, which tracks distinct column references used by aggregate expressions such as SUM(), COUNT(), and AVG(). SQLite stores an aggregate column index in a signed 16-bit field, but the internal counter can grow beyond that range. When the number of distinct aggregate column references exceeds 32,767, a 32-bit value is truncated during assignment to the 16-bit index field, causing the value to wrap negative. In production builds, where assertion checks are not present, the invalid negative index can propagate into later memory calculations and lead to out-of-bounds pointer arithmetic, array over-read, and memory corruption. SQLite 3.50.2 adds a bounds check that rejects aggregate queries with 32,768 or more terms and returns an error instead of performing the unsafe cast.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
No valid public exploits. Mallory filtered out 1 candidate as fakes, detection scripts, or README-only repos.
All candidate exploits were filtered out by Mallory's validation.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
71 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A previously fixed SQLite integer overflow causing read past end of array, mentioned only as historical background.
A historical SQLite integer overflow/array overread vulnerability in aggregation handling, mentioned as background.
A SQLite vulnerability reportedly found with help from Google Big Sleep before imminent exploitation.
A critical vulnerability patched in Oracle Communications that can lead to remote code execution.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.