CVE-2025-6965
SQLite vulnerability analysis and mitigation

Overview

CVE-2025-6965 is a memory corruption vulnerability discovered in SQLite versions prior to 3.50.2. The vulnerability was identified in July 2025 and was discovered by Google's AI-assisted vulnerability discovery framework called Big Sleep. The flaw affects all SQLite versions before 3.50.2, where the number of aggregate terms could exceed the number of columns available (NVD, Hacker News).

Technical details

The vulnerability is characterized by a memory corruption issue that occurs when the number of aggregate terms in a query exceeds the maximum number of columns available. The flaw has been assigned a CVSS v4.0 base score of 7.2 (High) by Google Inc., with the vector string CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:H/VA:L/SC:L/SI:H/SA:L/S:N/AU:N/R:U/V:D/RE:L/U:Green. Additionally, NIST has assigned it a CVSS v3.1 score of 9.8 (Critical) (NVD).

Impact

The vulnerability could lead to memory corruption issues when exploited. According to Google's assessment, this security issue was known to threat actors and was at risk of being exploited in the wild. The potential impact includes system crashes and possible arbitrary code execution through carefully crafted SQL queries (Hacker News).

Mitigation and workarounds

The primary mitigation is to upgrade to SQLite version 3.50.2 or above. The fix involves implementing a check that raises an error immediately if the number of aggregate terms in a query exceeds the maximum number of columns (SQLite Patch).

Community reactions

The discovery has garnered significant attention as it marks the first time an AI agent has been used to directly foil efforts to exploit a vulnerability in the wild. Kent Walker, President of Global Affairs at Google and Alphabet, highlighted this achievement as a milestone in using AI for cybersecurity (Hacker News).

Additional resources


SourceThis report was generated using AI

Related SQLite vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-29087HIGH7.5
  • SQLiteSQLite
  • cargo
NoYesApr 07, 2025
CVE-2025-6965HIGH7.2
  • SQLiteSQLite
  • libsqlite3-0
NoYesJul 15, 2025
CVE-2025-7458MEDIUM6.9
  • SQLiteSQLite
  • mingw-sqlite
NoYesJul 29, 2025
CVE-2025-3277MEDIUM6.9
  • SQLiteSQLite
  • nodejs:22::nodejs
NoYesApr 14, 2025
CVE-2025-29088MEDIUM5.6
  • SQLiteSQLite
  • nodejs22
NoYesApr 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management