CVE-2017-10989
Critical · 9.8CVSS
9.8
EPSS
8.6%
Published
Jul 7, 2017
CISA due date
—
Cloudanix analysis
A long-standing flaw in common database software could let attackers read or damage information inside applications that handle specially crafted database files.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer over-read in SQLite getNodeSize function when processing undersized RTree blobs from a crafted database file, potentially leading to information disclosure or other memory corruption effects.
Why it matters to the business
Applications relying on SQLite RTree functionality across 98 downstream dependents face risk of remote exploitation enabling data exposure or service disruption; the issue has persisted since 2017 with stable but non-zero exploit probability.
How an attack unfolds
An attacker supplies a maliciously crafted SQLite database containing undersized RTree blobs; when the victim application loads the database and triggers RTree node operations, getNodeSize mishandles the blob size leading to out-of-bounds heap read that may be chained for further impact.
How to fix it
Upgrade SQLite to a version after 3.19.3; for tensorflow (Bitnami) specifically upgrade to 2.1.4 or later. Where immediate patching is not feasible, disable RTree usage or validate all untrusted database inputs before loading.
How to confirm the fix worked
Verify the deployed SQLite library version is newer than 3.19.3; attempt to open a test database containing undersized RTree blobs and confirm absence of crashes or unexpected memory reads.
Typical attack path
- Deliver or induce loading of a crafted SQLite database file containing malformed RTree data
- Trigger RTree index operations that invoke getNodeSize on the undersized blob
- Cause heap buffer over-read to leak memory contents or destabilize the process
- Leverage any resulting primitive for code execution or data exfiltration if additional weaknesses exist
How to detect it
Review application logs for SQLite crashes or segmentation faults during database loading; inspect process memory dumps for evidence of out-of-bounds reads on RTree structures; search file systems for recently introduced SQLite database files with anomalous RTree blob sizes.
What your security team should do
- Immediately upgrade tensorflow (Bitnami) to version 2.1.4
- Inventory all products using SQLite and schedule upgrades for any versions through 3.19.3
- Block untrusted database files from being processed by RTree-enabled applications
- Monitor EPSS score for any upward trend indicating increased exploit interest
The record
The getNodeSize function in ext/rtree/rtree.c in SQLite through 3.19.3, as used in GDAL and other products, mishandles undersized RTree blobs in a crafted database, leading to a heap-based buffer over-read or possibly unspecified other impact.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.3 | sqlite | 0 | 3.13.0-r1 |
| Alpine:v3.4 | sqlite | 0 | 3.13.0-r1 |
| Alpine:v3.5 | sqlite | 0 | 3.15.2-r1 |
| Alpine:v3.6 | sqlite | 0 | 3.20.0 |
| Debian:11 | sqlite3 | 0 | 3.19.3-3 |
| Debian:12 | sqlite3 | 0 | 3.19.3-3 |
| Debian:13 | sqlite3 | 0 | 3.19.3-3 |
| Debian:14 | sqlite3 | 0 | 3.19.3-3 |
| Debian:7 | sqlite3 | 0 | 3.7.13-1+deb7u4 |
| Debian:8 | sqlite3 | 0 | 3.8.7.1-1+deb8u4 |
| Mageia:5 | sqlite3 | 0 | 3.10.2-1.1.mga5 |
| Mageia:6 | sqlite3 | 0 | 3.17.0-2.1.mga6 |
| SUSE:HPE Helion OpenStack 8 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | sqlite3 | 0 | 3.8.10.2-9.6.1 |
| SUSE:Linux Enterprise Desktop 12 SP4 | sqlite3 | 0 | 3.8.10.2-9.6.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 12 SP3 | sqlite3 | 0 | 3.8.10.2-9.6.1 |
| SUSE:Linux Enterprise Server 12 SP3-BCL | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 12 SP3-LTSS | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 12 SP4 | sqlite3 | 0 | 3.8.10.2-9.6.1 |
| SUSE:Linux Enterprise Server 12 SP4-LTSS | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 12 SP5 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server 12-LTSS | sqlite3 | 0 | 3.8.3.1-2.12.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | sqlite3 | 0 | 3.8.10.2-9.6.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | sqlite3 | 0 | 3.8.10.2-9.6.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | sqlite3 | 0 | 3.8.10.2-9.6.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP4 | sqlite3 | 0 | 3.8.10.2-9.6.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP5 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:OpenStack Cloud 8 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:OpenStack Cloud 9 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:OpenStack Cloud Crowbar 8 | sqlite3 | 0 | 3.36.0-9.18.1 |
| SUSE:OpenStack Cloud Crowbar 9 | sqlite3 | 0 | 3.36.0-9.18.1 |
| Ubuntu:14.04:LTS | sqlite3 | 0 | 3.8.2-1ubuntu2.2+esm1 |
| Ubuntu:16.04:LTS | sqlite3 | 0 | 3.11.0-1ubuntu1.2 |
| Ubuntu:18.04:LTS | sqlite3 | 0 | 3.22.0-1 |
| Ubuntu:18.04:LTS | sqlite3 | 0 | 3.22.0-1ubuntu0.1 |
| Ubuntu:Pro:14.04:LTS | sqlite3 | 0 | 3.8.2-1ubuntu2.2+esm1 |
Related vulnerabilities
- CVE-2017-15286 SQLite 3.20.1 has a NULL pointer dereference in tableColumnList in shell.c because it… Also affects sqlite
- CVE-2025-7458 An integer overflow in the sqlite3KeyInfoFromExprList function in SQLite versions 3.39.2… Also affects sqlite3
- CVE-2025-6965 There exists a vulnerability in SQLite versions before 3.50.2 where the number of… Also affects sqlite3
- CVE-2025-29088 An issue in sqlite v.3.49.0 allows an attacker to cause a denial of service via the… Also affects sqlite3
- CVE-2020-24736 Buffer Overflow vulnerability found in SQLite3 v.3.27.1 and before allows a local… Also affects sqlite3
- CVE-2020-35527 In SQLite 3.31.1, there is an out of bounds access problem through ALTER TABLE for views… Also affects sqlite3
- CVE-2020-35525 In SQlite 3.31.1, a potential null pointer derreference was found in the INTERSEC query… Also affects sqlite3
- CVE-2022-35737 SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if… Also affects sqlite3