CVE-2025-6965
Published: 15 July 2025
Summary
CVE-2025-6965 is a high-severity Numeric Truncation Error (CWE-197) vulnerability in Sqlite Sqlite. Its CVSS base score is 7.2 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 17.4% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified are NIST 800-53 SI-2 (Flaw Remediation) and RA-5 (Vulnerability Monitoring and Scanning).
Deeper analysis
A vulnerability in SQLite versions prior to 3.50.2 allows the number of aggregate terms in a query to exceed the number of available columns, resulting in memory corruption. The flaw is tracked as CVE-2025-6965 and carries a CVSS 4.0 score of 7.2 with network attack vector, low privileges required, and high attack complexity.
An attacker who can supply or influence SQL statements processed by an affected SQLite instance may trigger the out-of-bounds condition. Successful exploitation can corrupt memory and produce high-integrity impacts on the affected process, though the high complexity and prerequisite access limit the practical attack surface to applications that accept untrusted queries or load attacker-controlled databases.
Public references, including the SQLite commit record and coordinated Full Disclosure postings, direct users to upgrade to version 3.50.2 or later to correct the aggregate-term handling logic. The associated EPSS score remains low at approximately 0.017 with no material increase after disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-21441
Vulnerability details
There exists a vulnerability in SQLite versions before 3.50.2 where the number of aggregate terms could exceed the number of columns available. This could lead to a memory corruption issue. We recommend upgrading to version 3.50.2 or above.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Remote memory corruption in SQLite enables unauthenticated network exploitation for arbitrary code execution in exposed deployments.
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Directly mandates timely flaw remediation by upgrading vulnerable SQLite versions before 3.50.2 to patched version 3.50.2 or later, addressing the memory corruption vulnerability.
Provides memory protection mechanisms such as address space layout randomization and data execution prevention to mitigate exploitation of SQLite's memory corruption from excess aggregate terms.
Requires vulnerability scanning to identify systems running SQLite versions before 3.50.2 affected by the aggregate terms exceeding columns issue.