Cloudanix VulnDB

CVE-2017-15286

High · 7.5

CVSS

7.5

EPSS

2.9%

Published

Oct 12, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in database software can make programs crash when they receive certain unexpected data, potentially disrupting services until the software is updated.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Application
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

NULL pointer dereference in tableColumnList within shell.c triggered when sqlite3_step(pStmt) does not return SQLITE_ROW, leaving a data structure uninitialized and causing a crash.

Why it matters to the business

Applications relying on the affected database packages may experience unexpected crashes and service interruptions, with potential for denial of service in environments processing untrusted queries; the flaw has been present for years with public exploit code available.

How an attack unfolds

An attacker supplies specially crafted input to the SQLite shell interface that causes tableColumnList to skip initialization when sqlite3_step fails to return a row; public exploits exist that trigger the dereference to crash the process, and while no named threat actors are associated, the long-public nature allows easy integration into automated attack tools targeting vulnerable MySQL package deployments.

How to fix it

Upgrade affected packages to the fixed versions: mysql-8.0, mysql-8.0-dev, mysql-8.0-oci-entrypoint, mysql-8.0-oci-entrypoint-compat, and mysql-8.0-client to 8.0.38-r0 or later; avoid using unpatched SQLite shell interfaces with untrusted inputs until updated.

How to confirm the fix worked

Confirm package versions are at or above the listed fixed releases, test that tableColumnList paths no longer dereference NULL under the described sqlite3_step conditions, and verify no crash occurs with previously triggering inputs.

Typical attack path

  1. Identify an exposed or locally accessible instance using an affected MySQL package version with the vulnerable SQLite shell component.
  2. Craft input that exercises tableColumnList such that sqlite3_step returns a non-row result.
  3. Trigger the uninitialized structure dereference to cause a NULL pointer crash.
  4. Repeat or automate to sustain denial of service.

How to detect it

Review application and system logs for segmentation faults or abrupt process terminations in mysql or sqlite3 shell processes; examine any available core dumps or stack traces referencing tableColumnList or shell.c for signs of prior exploitation attempts.

What your security team should do

  • Prioritize upgrading all listed MySQL packages to the 8.0.38-r0 fixed releases immediately given the public exploit availability.
  • Scan environments for any remaining pre-8.0.38-r0 instances and isolate them from untrusted query sources.
  • Implement input validation or sandboxing around SQLite shell usage as a temporary control.
  • Monitor for crashes in database processes as an operational indicator of potential exposure.

The record

SQLite 3.20.1 has a NULL pointer dereference in tableColumnList in shell.c because it fails to consider certain cases where `sqlite3_step(pStmt)==SQLITE_ROW` is false and a data structure is never initialized.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.6 sqlite 0 3.20.1-r1
Debian:10 sqlite3 0 3.20.1-2
Debian:11 sqlite3 0 3.20.1-2
Debian:12 sqlite3 0 3.20.1-2
Debian:13 sqlite3 0 3.20.1-2
Ubuntu:18.04:LTS sqlite3 0 3.22.0-1

Related vulnerabilities