CVE-2017-13685
Medium · 5.5CVSS
5.5
EPSS
1.8%
Published
Aug 29, 2017
CISA due date
—
Cloudanix analysis
A specially made file can crash the application, interrupting service until it is restarted.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The dump_callback function in SQLite 3.20.0 processes a crafted input file in a way that triggers an invalid memory access (EXC_BAD_ACCESS), resulting in immediate application termination.
Why it matters to the business
Service availability is disrupted when users or automated processes open malicious files, leading to unplanned downtime and potential loss of in-flight work until the affected processes are restarted.
How an attack unfolds
An attacker prepares a specially formatted file that exercises the vulnerable code path in SQLite's dump_callback routine. The file is delivered to a target user or system that uses one of the affected nginx packages. When the application opens or processes the file, the invalid memory access occurs and the process crashes.
How to fix it
Upgrade all listed nginx-stable packages (nginx-stable, nginx-stable-config, nginx-stable-mod-*, nginx-stable-src, etc.) on both Chainguard and Wolfi to version 1.26.1-r0 or later. After upgrade, restart any services that load the updated packages and verify the new SQLite component is in use.
How to confirm the fix worked
Confirm package versions match or exceed the listed fixed releases, then test that a previously crashing crafted file no longer produces EXC_BAD_ACCESS. Monitor process uptime and crash logs during validation.
Typical attack path
- Attacker crafts a malicious file targeting SQLite dump_callback
- File is delivered via email, download, or shared storage
- User or automated process opens the file with an affected nginx package
- SQLite processes the file and encounters the invalid memory access
- Application crashes, causing denial of service
How to detect it
Review application and system logs for sudden crashes or segmentation faults that coincide with file-processing activity. Correlate timestamps of crashes with file open events involving SQLite components.
What your security team should do
- Prioritize upgrade of all affected nginx-stable packages to 1.26.1-r0 within the next maintenance window
- Inventory environments that bundle or depend on these packages and schedule restarts
- Add the fixed package versions to automated update policies and SBOM checks
- Review file-handling workflows that could receive untrusted input
The record
The dump_callback function in SQLite 3.20.0 allows remote attackers to cause a denial of service (EXC_BAD_ACCESS and application crash) via a crafted file.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | sqlite | 0 | No fix |
| Debian:10 | sqlite3 | 0 | 3.20.1-1 |
| Debian:11 | sqlite3 | 0 | 3.20.1-1 |
| Debian:12 | sqlite3 | 0 | 3.20.1-1 |
| Debian:13 | sqlite3 | 0 | 3.20.1-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-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-2016-6153 os_unix.c in SQLite before 3.13.0 improperly implements the temporary directory search… Also affects sqlite
- 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-2019-19244 sqlite3Select in select.c in SQLite 3.30.1 allows a crash if a sub-select uses both… Also affects sqlite3
- CVE-2019-9937 In SQLite 3.27.2, interleaving reads and writes in a single transaction with an fts5… Also affects sqlite3
- CVE-2019-9936 In SQLite 3.27.2, running fts5 prefix queries inside a transaction could trigger a… Also affects sqlite3
- CVE-2017-15286 SQLite 3.20.1 has a NULL pointer dereference in tableColumnList in shell.c because it… Also affects sqlite3