CVE-2025-7709
SQLite vulnerability analysis and mitigation

Overview

An integer overflow vulnerability (CVE-2025-7709) was discovered in SQLite's FTS5 extension. The vulnerability was reported on July 15, 2025, and fixed on July 16, 2025, with public disclosure on August 15, 2025. The issue occurs when calculating the size of an array of tombstone pointers, which gets truncated into a 32-bit integer, potentially allowing a pointer to partially controlled data to be written out of bounds (Google Research).

Technical details

The vulnerability exists in the fts5SegIterAllocTombstone() function where nByte is calculated as the total size for an array of pointers. While the multiplication done in the SZ_FTS5TOMBSTONEARRAY macro is a 64-bit multiplication, the result gets truncated to 32-bit when exceeding 2^32 - 1. The vulnerability has been assigned a CVSS 4.0 score of 6.9 (Medium) with the vector string CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:A/VC:N/VI:H/VA:L/SC:N/SI:H/SA:L (NVD).

Impact

The vulnerability can lead to heap-buffer-overflow conditions when exploited. The impact is considered moderate, as it can be triggered either by an attacker who can execute arbitrary queries or by processing a controlled SQLite DB file. The overflow can result in out-of-bounds write operations, potentially compromising system security (Google Research).

Mitigation and workarounds

The vulnerability has been fixed in SQLite version 3.50.3. The fix can be found in commit 63595b74956a9391. Various distributions have also released patches, including Ubuntu 24.04 LTS (noble) with version 3.45.1-1ubuntu2.5 and Ubuntu 25.04 (plucky) with version 3.46.1-3ubuntu0.3 (Ubuntu, Snyk).

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-52099HIGH7.5
  • SQLiteSQLite
  • nodejs:24::nodejs
NoYesOct 24, 2025
CVE-2025-6965HIGH7.2
  • SQLiteSQLite
  • nodejs22-debuginfo
NoYesJul 15, 2025
CVE-2025-7709MEDIUM6.9
  • SQLiteSQLite
  • sqlite-libs
NoYesSep 08, 2025
CVE-2025-7458MEDIUM6.9
  • SQLiteSQLite
  • mingw32-sqlite
NoYesJul 29, 2025
CVE-2025-3277MEDIUM6.9
  • SQLiteSQLite
  • nodejs-devel
NoYesApr 14, 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