← Vulnerability feed

Vulnerability record · CVE-2025-6965 · published 15 July 2025

CVE-2025-6965: SQLite aggregate term count mismatch memory corruption

Sqlite · Sqlite

SQLite versions before 3.50.2 allow the number of aggregate terms to exceed the number of available columns, leading to memory corruption. The flaw affects SQLite itself and downstream products embedding it, including Apple operating systems and Siemens industrial products. Because SQLite is widely embedded, the reachable attack surface depends on how each host application exposes SQL processing.

7.2 CVSS 4.0 High EPSS 73% · top 0.6% CWE-197 · CWE-197
7.2CVSS 4.0 base score
73%EPSS exploitation probability, 30 days
NoNot in CISA KEV
9Affected product versions listed by NVD
9References
26 Jun 2026Last modified by NVD

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.

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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:N/R:

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: medium.

high priorityCVSS 4.0 rates it 7.2 HIGH with high integrity impact and a very high EPSS percentile, though exploitation is not confirmed in KEV and requires high complexity and some privilege.

What it is

SQLite versions before 3.50.2 allow the number of aggregate terms to exceed the number of available columns, leading to memory corruption. The flaw affects SQLite itself and downstream products embedding it, including Apple operating systems and Siemens industrial products. Because SQLite is widely embedded, the reachable attack surface depends on how each host application exposes SQL processing.

Impact

An attacker who can supply crafted SQL can trigger memory corruption, with the CVSS vector indicating high integrity impact and low confidentiality and availability impact. The practical gain depends on the host application's memory layout and privileges.

Attack surface

The CVSS 4.0 vector is network-reachable (AV:N) with low privileges required (PR:L) and no user interaction (UI:N), but high attack complexity (AC:H) and a passive attack requirement (AT:P). This suggests the flaw is reached through SQL processing in a networked service rather than by direct unauthenticated input.

Exploitation

Not listed in CISA KEV and no ransomware usage is documented. EPSS is high at 0.72547 (99.4th percentile), but the only reference tag present is Patch and Third Party Advisory, so no public exploit code is confirmed by this record.

What to do

  • Upgrade SQLite to 3.50.2 or later; the patch reference is the authoritative fix.
  • For Apple and Siemens products, apply the vendor advisories that bundle the updated SQLite library.
  • Inventory embedded SQLite copies in applications and appliances, since patching the OS package alone may not cover statically linked builds.
  • Restrict network access to services that accept SQL input and enforce least privilege on database accounts.
  • Where immediate upgrade is not possible, limit untrusted users' ability to submit arbitrary SQL to affected components.

Detection

  • Monitor for crashes or abnormal termination in processes that embed SQLite, especially those parsing externally supplied SQL.
  • Look for SQL statements with unusually large numbers of aggregate terms relative to the selected columns in application or database logs.
  • Track version strings of SQLite libraries in use across hosts and flag any below 3.50.2.
  • Correlate network-facing SQL endpoints with post-request memory error or sanitizer alerts where available.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

9 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-6965 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-43300Apple iOS, iPadOS and macOS out-of-bounds write via malicious imageAn out-of-bounds write in Apple iOS, iPadOS and macOS is triggered when processing a malicious image file, causing memory corruption. Apple states th…KEVEPSS 22%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2025-24085Apple iOS, iPadOS, macOS, tvOS, visionOS, watchOS Use-After-Free Privilege EscalationA use-after-free flaw in Apple's operating systems was fixed through improved memory management in iOS 18.3, iPadOS 18.3 and 17.7.6, macOS Sequoia 15…KEVEPSS 18%analysed9.8CVE-2026-65400Apple macOS Screen Sharing authentication bypassAn improper authentication flaw in Apple macOS Screen Sharing allows a network attacker to authenticate without valid credentials. Apple fixed it via…KEVEPSS 1.2%analysed9.8CVE-2025-31200Apple OS media parsing memory corruption allows code executionA memory corruption flaw in Apple's audio stream processing was fixed with improved bounds checking across iOS, iPadOS, macOS, tvOS, visionOS and wat…KEVEPSS 19%analysed9.8CVE-2025-31201Apple OS Pointer Authentication bypass via arbitrary read/writeApple removed vulnerable code that allowed an attacker holding arbitrary read and write capability to bypass Pointer Authentication across iOS, iPadO…KEVEPSS 14%analysed9.8CVE-2022-22587Apple iOS, iPadOS and macOS kernel memory corruption via out-of-bounds writeAn out-of-bounds write (CWE-787) in Apple iOS, iPadOS and macOS is caused by insufficient input validation and can corrupt memory. Apple states it is…KEVEPSS 12%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed

Source: NIST National Vulnerability Database (record CVE-2025-6965), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.