Memory Corruption Vulnerability in SQLite Package - CVE-2025-6965

sqlite Updated 14 Dec 2025

Summary

15/07/2025
N/A
No i
High
7.2

UBUNTU-CVE-2025-6965: There exists a vulnerability in SQLite versions before 3.50.2 where the number of aggregate terms could exceed the number of columns available. Affects sqlite versions 2.8.17-10ubuntu2 – 2.8.17-9fakesync1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

SQLite is a widely used database engine that provides a lightweight, serverless, self-contained SQL database engine. It is commonly embedded in applications and is known for its simplicity and efficiency. However, certain versions of SQLite are vulnerable to a memory corruption issue due to improper handling of aggregate terms, which can lead to significant security risks.

Vulnerability Detail

The vulnerability identified as CVE-2025-6965 affects SQLite versions prior to 3.50.2. It arises from the potential for the number of aggregate terms to exceed the number of available columns, leading to memory corruption. This can allow an attacker to exploit the vulnerability, potentially leading to arbitrary code execution or data corruption. The issue is particularly concerning as it can compromise the integrity and availability of applications relying on SQLite for data management.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, if upgrading is not immediately possible, consider limiting the number of aggregate terms in your SQL queries to avoid triggering the vulnerability. However, this is not a permanent solution and upgrading is strongly advised.

Conclusion

In summary, CVE-2025-6965 is a critical vulnerability in SQLite that can lead to memory corruption. It is essential for users of affected versions to upgrade to version 3.50.2 or later to mitigate the risks associated with this vulnerability. Regular monitoring and updates are crucial for maintaining application security.

See every vulnerability recorded for sqlite →

Share this vulnerability

FAQ

CVE-2025-6965 is a vulnerability in SQLite that can lead to memory corruption due to improper handling of aggregate terms.

SQLite versions prior to 3.50.2 are affected by this vulnerability.

Exploitation of this vulnerability can lead to memory corruption, which may result in arbitrary code execution or data corruption.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

If an immediate upgrade is not possible, limit the number of aggregate terms in your SQL queries as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for sqlite.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback