---
id: CVE-2019-20218
title: >-
  selectExpander in select.c in SQLite 3.30.1 proceeds with WITH stack unwinding
  even after a parsing error.
summary: >-
  selectExpander in select.c in SQLite 3.30.1 proceeds with WITH stack unwinding
  even after a parsing error.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-755
  - CWE-391
vendor: sqlite
product: sqlite
affected:
  - sqlite = 3.30.1
  - debian_linux = 9.0
  - ubuntu_linux = 16.04
  - ubuntu_linux = 18.04
  - ubuntu_linux = 19.10
  - mysql_workbench <= 8.0.19
published: '2020-01-02'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T08:17:00.757'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2019-20218'
references:
  - url: >-
      https://github.com/sqlite/sqlite/commit/a6c1a71cde082e09750465d5675699062922e387
    label: cve@mitre.org
  - url: 'https://lists.debian.org/debian-lts-announce/2020/08/msg00037.html'
    label: cve@mitre.org
  - url: 'https://lists.debian.org/debian-lts-announce/2020/12/msg00016.html'
    label: cve@mitre.org
  - url: 'https://security.gentoo.org/glsa/202007-26'
    label: cve@mitre.org
  - url: 'https://usn.ubuntu.com/4298-1/'
    label: cve@mitre.org
  - url: 'https://www.oracle.com/security-alerts/cpuapr2020.html'
    label: cve@mitre.org
  - url: >-
      https://github.com/sqlite/sqlite/commit/a6c1a71cde082e09750465d5675699062922e387
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2020/08/msg00037.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2020/12/msg00016.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.gentoo.org/glsa/202007-26'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://usn.ubuntu.com/4298-1/'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://www.oracle.com/security-alerts/cpuapr2020.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-398330.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2019/cve-2019-20218.json
  - url: 'https://access.redhat.com/security/cve/CVE-2019-20218'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=1791313'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2019-20218'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2019-20218'
  - url: 'https://access.redhat.com/errata/RHSA-2020:4442'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.03622
epssPercentile: 0.89269
ingestedAt: '2026-10-14T08:23:04.328Z'
patched:
  - enterprise_linux_appstream_v_8
  - enterprise_linux_baseos_v_8
---

## Overview

selectExpander in select.c in SQLite 3.30.1 proceeds with WITH stack unwinding even after a parsing error.

## Affected

- `sqlite = 3.30.1`
- `debian_linux = 9.0`
- `ubuntu_linux = 16.04`
- `ubuntu_linux = 18.04`
- `ubuntu_linux = 19.10`
- `mysql_workbench <= 8.0.19`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2020:4442** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 8), Red Hat Enterprise Linux BaseOS (v. 8) · released 2020-11-04 · [advisory](https://access.redhat.com/errata/RHSA-2020:4442)
- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 5, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7 · no fix planned: Red Hat Enterprise Linux 5, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7 · updated 2026-10-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2019/cve-2019-20218.json)
