CVE-2020-11655
High · 7.5CVSS
7.5
EPSS
4.3%
Published
Apr 9, 2020
CISA due date
—
Cloudanix analysis
A flaw in a widely used database engine can let attackers crash applications by sending specially crafted database requests, causing outages until systems are updated.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Malformed window-function queries cause mishandled initialization of the AggInfo object, resulting in a segmentation fault that crashes the SQLite process.
Why it matters to the business
Applications relying on SQLite experience sudden service outages and data processing interruptions; the flaw affects numerous enterprise and embedded systems across operating systems and Oracle products, amplifying operational downtime risk despite low exploit probability.
How an attack unfolds
An attacker crafts a specially malformed SQL query using window functions and submits it to any exposed SQLite instance or dependent application, triggering the uninitialized AggInfo access and immediate crash; public exploits have been available for years but no named threat actors or ransomware campaigns are associated.
How to fix it
Upgrade SQLite to a version beyond 3.31.1 that properly initializes the AggInfo object; apply vendor patches for all affected products such as Oracle components, NetApp, Debian, Ubuntu, Siemens, and Tenable; disable or sanitize untrusted window-function queries where upgrades are delayed.
How to confirm the fix worked
Confirm deployed SQLite version exceeds 3.31.1; execute test cases with known-malformed window-function queries in a non-production environment and verify absence of crashes; review vendor advisories for each affected product to confirm patch application.
Typical attack path
- Identify an application or service exposing SQLite query processing over a network or local interface
- Craft a malicious SQL statement containing malformed window-function syntax
- Submit the query to trigger the AggInfo initialization flaw
- Observe segmentation fault and resulting denial of service
How to detect it
Review application and database logs for unexpected SQLite process terminations or segmentation fault entries around the time of query execution; correlate with unusual SQL statements containing window functions; examine system crash dumps or core files for SQLite stack traces.
What your security team should do
- Prioritize inventory of all SQLite instances and dependent products given the broad ecosystem reach
- Apply available updates immediately for internet-exposed or high-value systems
- Implement query allow-listing or input validation to block complex window functions from untrusted sources
- Monitor crash logs for segmentation faults tied to SQLite processes
The record
SQLite through 3.31.1 allows attackers to cause a denial of service (segmentation fault) via a malformed window-function query because the AggInfo object's initialization is mishandled.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.10 | sqlite | 0 | 3.28.0-r3 |
| Alpine:v3.11 | sqlite | 0 | 3.30.1-r2 |
| Alpine:v3.12 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.13 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.14 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.15 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.16 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.17 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.18 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.19 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.20 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.21 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.22 | sqlite | 0 | 3.30.1-r3 |
| Alpine:v3.8 | sqlite | 0 | 3.25.0-r4 |
| Alpine:v3.9 | sqlite | 0 | 3.28.0-r3 |
| Bitnami | sqlite | 0 | 3.31.1 |
| Bitnami | sqlite | 0 | 3.31.2 |
| Chainguard | mysql-8.0 | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-bitnami-compat | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-client | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-dev | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-iamguarded-compat | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-oci-entrypoint | 0 | 8.0.38-r0 |
| Chainguard | mysql-8.0-oci-entrypoint-compat | 0 | 8.0.38-r0 |
| Debian:11 | sqlite3 | 0 | 3.31.1-5 |
| Debian:12 | sqlite3 | 0 | 3.31.1-5 |
| Debian:13 | sqlite3 | 0 | 3.31.1-5 |
| Debian:14 | sqlite3 | 0 | 3.31.1-5 |
| Debian:8 | sqlite3 | 0 | 3.8.7.1-1+deb8u5 |
| Debian:9 | sqlite3 | 0 | 3.16.2-5+deb9u2 |
| Mageia:7 | sqlite3 | 0 | 3.31.1-1.1.mga7 |
| Ubuntu:14.04:LTS | sqlite | 0 | No fix |
| Ubuntu:16.04:LTS | sqlite | 0 | No fix |
| Ubuntu:16.04:LTS | sqlite3 | 0 | 3.11.0-1ubuntu1.5 |
| Ubuntu:18.04:LTS | sqlite | 0 | No fix |
| Ubuntu:18.04:LTS | sqlite3 | 0 | 3.22.0-1ubuntu0.4 |
| Ubuntu:20.04:LTS | sqlite | 0 | No fix |
| Ubuntu:20.04:LTS | sqlite3 | 0 | 3.31.1-4ubuntu0.1 |
| Ubuntu:22.04:LTS | sqlite | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | sqlite | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | sqlite | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | sqlite | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | sqlite | 0 | No fix |
Related vulnerabilities
- CVE-2019-19242 SQLite 3.30.1 mishandles pExpr->y.pTab, as demonstrated by the TK_COLUMN case in… Also affects sqlite
- CVE-2019-19244 sqlite3Select in select.c in SQLite 3.30.1 allows a crash if a sub-select uses both… Also affects sqlite
- CVE-2019-16168 In SQLite through 3.29.0, whereLoopAddBtreeIndex in sqlite3.c can crash a browser or… Also affects sqlite
- CVE-2019-8457 SQLite3 from 3.6.0 to and including 3.27.2 is vulnerable to heap out-of-bound read in the… Also affects sqlite
- CVE-2019-5018 An exploitable use after free vulnerability exists in the window function functionality… Also affects sqlite
- CVE-2022-35737 SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if… Also affects sqlite
- CVE-2025-29087 Sqlite 3.49.0 is susceptible to integer overflow through the concat function. Also affects sqlite
- CVE-2025-6965 There exists a vulnerability in SQLite versions before 3.50.2 where the number of… Also affects sqlite