CVE-2025-6965

Integer Truncation on SQLite

Published Jul 15, 2025 CVSS 4.0 · 7.2 High EPSS 73.5% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw triggers when the number of aggregate terms in an SQL query exceeds the number of columns available in SQLite, causing an integer truncation that corrupts memory. This corruption can lead to application crashes or data integrity problems. The weakness is classified as CWE‑197.

Affected Systems

All releases of the SQLite engine before version 3.50.2. The vendor list includes SQLite itself, and the CPE data show the library is embedded in a range of products, such as Siemens RuggedCom Crossbow, sIDIS Prime, and Apple operating systems—including iOS, iPadOS, macOS, tvOS, visionOS, and watchOS.

Risk and Exploitability

The CVSS score of 7.2 indicates high severity, but the EPSS score of less than 1 % indicates a very low likelihood of exploitation. The description does not specify the exact attack vector, but based on the vulnerability it can be inferred that an attacker would need the ability to submit crafted SQL statements that produce an aggregate query exceeding the column count. If the vulnerable SQLite instance is accessible—whether locally or through a remote interface—such a query could trigger the truncation and memory corruption. The flaw is not listed in the CISA KEV catalog, implying no confirmed publicly used exploits as of this analysis.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the SQLite engine to version 3.50.2 or later to fix the integer truncation issue.
  • If an immediate upgrade is not feasible, constrain user‑supplied SQL so that the number of aggregate terms never exceeds the number of columns, thereby preventing the truncation condition.
  • Apply additional safeguards such as input sanitization or restrictive access controls to limit the creation and execution of complex aggregate queries from untrusted sources.

Generated by OpenCVE AI on October 17, 2026 at 11:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-21441 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.
Github GHSA Github GHSA GHSA-2m69-gcr7-jv3q SQLitePCLRaw.lib.e_sqlite3 has a vulnerable dependency on SQLite
Ubuntu USN Ubuntu USN USN-7676-1 SQLite vulnerability
Ubuntu USN Ubuntu USN USN-7679-1 SQLite vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:L'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics epss

{'score': 0.00042}

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:H/A:L'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Integer Truncation on SQLite
Weaknesses CWE-197
References
Metrics cvssV4_0

{'score': 7.2, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
Google
Published
Updated
Nov 3, 2026, 10:13 PM
Reserved
Jul 1, 2025, 9:19 AM
Status
Modified
Published
Jul 15, 2025, 2:15 PM
Modified
Nov 3, 2026, 11:17 PM
Severity
Important
Public date
Jul 15, 2025, 1:44 PM