CVE-2025-6965 Integer Truncation on SQLite

High 7.2 Published Updated

An integer truncation flaw in SQLite allows memory corruption via excessive aggregate terms, potentially leading to code execution or denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-6965?

CVE-2025-6965 is a high-severity vulnerability in Apple Ipados, published on 15 Jul 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-197

Which versions are affected by CVE-2025-6965?

7 open source packages ship an affected version, including SQLitePCLRaw.lib.e_sqlite3, sqlite and SQLitePCLRaw.lib.e_sqlite3.android. It affects 9 products.

PackageAffectedFixed in
SQLitePCLRaw.lib.e_sqlite3 NuGetAll versions to 2.1.11None
SQLitePCLRaw.lib.e_sqlite3 NuGetAll versions to 2.1.11None
sqlite BitnamiAll versionsNone
SQLitePCLRaw.lib.e_sqlite3.android NuGetAll versions to 2.1.11None
SQLitePCLRaw.lib.e_sqlite3.android NuGetAll versions to 2.1.11None
SQLitePCLRaw.lib.e_sqlite3.ios NuGetAll versions to 2.1.11None
1 more packages
SQLitePCLRaw.lib.e_sqlite3.ios NuGetAll versions to 2.1.11None
Linux distribution packages (33)
sqlite AlmaLinux:10All versions3.46.1-5.el10_0
sqlite-devel AlmaLinux:10All versions3.46.1-5.el10_0
sqlite-libs AlmaLinux:10All versions3.46.1-5.el10_0
lemon AlmaLinux:8All versions3.26.0-20.el8_10
mingw32-sqlite AlmaLinux:8All versions3.26.0.0-2.el8_10
mingw32-sqlite-static AlmaLinux:8All versions3.26.0.0-2.el8_10
mingw64-sqlite AlmaLinux:8All versions3.26.0.0-2.el8_10
mingw64-sqlite-static AlmaLinux:8All versions3.26.0.0-2.el8_10
nodejs AlmaLinux:8All versions1:22.16.0-2.module_el8.10.0+4028+97ddca84
nodejs-devel AlmaLinux:8All versions1:22.16.0-2.module_el8.10.0+4028+97ddca84
nodejs-docs AlmaLinux:8All versions1:22.16.0-2.module_el8.10.0+4028+97ddca84
nodejs-full-i18n AlmaLinux:8All versions1:22.16.0-2.module_el8.10.0+4028+97ddca84
nodejs-libs AlmaLinux:8All versions1:22.16.0-2.module_el8.10.0+4028+97ddca84
nodejs-nodemon AlmaLinux:8All versions3.0.1-1.module_el8.10.0+3983+391a1a04
nodejs-packaging AlmaLinux:8All versions2021.06-4.module_el8.10.0+4006+3c416519
nodejs-packaging-bundler AlmaLinux:8All versions2021.06-4.module_el8.10.0+3961+6a788e57
npm AlmaLinux:8All versions1:10.9.2-1.22.16.0.2.module_el8.10.0+4028+97ddca84
sqlite AlmaLinux:8All versions3.26.0-20.el8_10
sqlite-devel AlmaLinux:8All versions3.26.0-20.el8_10
sqlite-doc AlmaLinux:8All versions3.26.0-20.el8_10
sqlite-libs AlmaLinux:8All versions3.26.0-20.el8_10
v8-12.4-devel AlmaLinux:8All versions3:12.4.254.21-1.22.16.0.2.module_el8.10.0+4028+97ddca84
sqlite AlmaLinux:9All versions3.34.1-8.el9_6
sqlite AlmaLinux:9All versions3.34.1-9.el9_7
sqlite-devel AlmaLinux:9All versions3.34.1-8.el9_6
sqlite-devel AlmaLinux:9All versions3.34.1-9.el9_7
sqlite-libs AlmaLinux:9All versions3.34.1-8.el9_6
sqlite-libs AlmaLinux:9All versions3.34.1-9.el9_7
lemon-debuginfo Red Hat:enterprise_linux:10.0All versions0:3.46.1-5.el10_0
sqlite Red Hat:enterprise_linux:10.0All versions0:3.46.1-5.el10_0
sqlite-analyzer-debuginfo Red Hat:enterprise_linux:10.0All versions0:3.46.1-5.el10_0
sqlite-debuginfo Red Hat:enterprise_linux:10.0All versions0:3.46.1-5.el10_0
sqlite-debugsource Red Hat:enterprise_linux:10.0All versions0:3.46.1-5.el10_0

Products include Apple Ipados, Apple Iphone Os, Apple Macos, Apple Tvos, Apple Visionos, Apple Watchos and 3 more.

How do I fix CVE-2025-6965?

Upgrade to a fixed version.

Is CVE-2025-6965 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6965 exists.

Public exploit code: 1 Exploit-DB entry.

All Apple Ipados vulnerabilities

Sources

Also known as ALPINE-CVE-2025-6965, ALSA-2025:11803, ALSA-2025:11933, ALSA-2025:11992, ALSA-2025:12010, ALSA-2025:14101 and 57 more.

Is CVE-2025-6965 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free