CVE-2025-6965
Integer Truncation on SQLite
Also known as BIT-sqlite-2025-6965, EDB-52499, GHSA-2m69-gcr7-jv3q
Mitigation
- Upgrade SQLite to 3.50.2 or later.
Who should check
- Projects that depend on NuGet package SQLitePCLRaw.lib.e_sqlite3 (<= 2.1.11)
- Projects that depend on NuGet package SQLitePCLRaw.lib.e_sqlite3.android (<= 2.1.11)
- Projects that depend on NuGet package SQLitePCLRaw.lib.e_sqlite3.ios (<= 2.1.11)
- Anyone running SQLite < 3.50.2
Vulnerability facts
- Affected
- SQLitePCLRaw.lib.e_sqlite3 <= 2.1.11; SQLitePCLRaw.lib.e_sqlite3.android <= 2.1.11; SQLitePCLRaw.lib.e_sqlite3.ios <= 2.1.11
- Fixed in
- SQLite 3.50.2
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, login needed
- CVSS
- 7.2 (v4.0, CNA)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:GreenOpen in CVSS calculator
Show all 17 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Attack requirements: Present
- Privileges required: Low
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: Low
- Confidentiality impact on other systems: Low
- Integrity impact on other systems: High
- Availability impact on other systems: Low
- S: N
- AU: N
- R: U
- V: D
- RE: L
- U: Green
- EPSS
- 2.82% chance of exploitation in 30 days (percentile 87, 2026-11-26)
- CWE
- CWE-197
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| NuGet SQLitePCLRaw.lib.e_sqlite3 | <= 2.1.11 | — | osv |
| NuGet SQLitePCLRaw.lib.e_sqlite3.android | <= 2.1.11 | — | osv |
| NuGet SQLitePCLRaw.lib.e_sqlite3.ios | <= 2.1.11 | — | osv |
| SQLite | < 3.50.2 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-6965. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-6965.md Affected: SQLitePCLRaw.lib.e_sqlite3 <= 2.1.11; SQLitePCLRaw.lib.e_sqlite3.android <= 2.1.11; SQLitePCLRaw.lib.e_sqlite3.ios <= 2.1.11 Fixed in: SQLite 3.50.2 Steps: 1. Search this machine and project for SQLitePCLRaw.lib.e_sqlite3 (NuGet), SQLitePCLRaw.lib.e_sqlite3.android (NuGet), SQLitePCLRaw.lib.e_sqlite3.ios (NuGet), SQLite: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Exploits and PoCs
Other
- http://seclists.org/fulldisclosure/2025/Sep/57
- http://seclists.org/fulldisclosure/2025/Sep/56
- http://seclists.org/fulldisclosure/2025/Sep/53
- http://seclists.org/fulldisclosure/2025/Sep/58
- http://seclists.org/fulldisclosure/2025/Sep/49
- http://www.openwall.com/lists/oss-security/2025/09/06/1
- https://cert-portal.siemens.com/productcert/html/ssa-485750.html
- https://cert-portal.siemens.com/productcert/html/ssa-225816.html
- https://cert-portal.siemens.com/productcert/html/ssa-765416.html
- https://github.com/ericsink/SQLitePCL.raw
FAQ
Is CVE-2025-6965 being exploited?
There is no confirmed exploitation: CVE-2025-6965 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.82% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-6965?
High: CVSS 7.2 (v4.0, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-6965?
SQLitePCLRaw.lib.e_sqlite3 <= 2.1.11; SQLitePCLRaw.lib.e_sqlite3.android <= 2.1.11; SQLitePCLRaw.lib.e_sqlite3.ios <= 2.1.11.
Is there a fix for CVE-2025-6965?
Yes. Fixed in SQLite 3.50.2. Upgrade SQLite to 3.50.2 or later.
How do I check if I'm affected by CVE-2025-6965?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.