SQLite Memory Corrupt: Aggregates > Columns Before 3.50.2
CVE-2025-6965 Published on July 15, 2025

Integer Truncation on SQLite
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.

NVD

Weakness Type

Numeric Truncation Error

Truncation errors occur when a primitive is cast to a primitive of a smaller size and data is lost in the conversion. When a primitive is cast to a smaller primitive, the high order bits of the large value are lost in the conversion, potentially resulting in an unexpected value that is not equal to the original value. This value may be required as an index into a buffer, a loop iterator, or simply necessary state data. In any case, the value cannot be trusted and the system will be in an undefined state. While this method may be employed viably to isolate the low bits of a value, this usage is rare, and truncation usually implies that an implementation error has occurred.


Products Associated with CVE-2025-6965

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-6965 are published in these products:

 
 
 
 
 
 
 
 

Affected Versions

SQLite:

Exploit Probability

EPSS
0.07%
Percentile
21.87%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.