---
id: CVE-2019-19959
title: >-
  ext/misc/zipfile.c in SQLite 3.30.1 mishandles certain uses of INSERT INTO in
  situations involving embedded '\0' characters in filenames, leading to a
  memory-management error that can be detected by (for example) valgrind.
summary: >-
  ext/misc/zipfile.c in SQLite 3.30.1 mishandles certain uses of INSERT INTO in
  situations involving embedded '\0' characters in filenames, leading to a
  memory-management error that can be detected by (for example) valgrind.
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'
vendor: sqlite
product: sqlite
affected:
  - sqlite = 3.30.1
  - ubuntu_linux = 16.04
  - ubuntu_linux = 18.04
  - ubuntu_linux = 19.10
published: '2020-01-03'
updated: '2026-10-14'
sourceUpdated: '2026-10-14T08:17:00.590'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2019-19959'
references:
  - url: >-
      https://github.com/sqlite/sqlite/commit/1e490c4ca6b43a9cf8637d695907888349f69bec
    label: cve@mitre.org
  - url: >-
      https://github.com/sqlite/sqlite/commit/d8f2d46cbc9925e034a68aaaf60aad788d9373c1
    label: cve@mitre.org
  - url: 'https://security.netapp.com/advisory/ntap-20200204-0001/'
    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/1e490c4ca6b43a9cf8637d695907888349f69bec
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://github.com/sqlite/sqlite/commit/d8f2d46cbc9925e034a68aaaf60aad788d9373c1
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://security.netapp.com/advisory/ntap-20200204-0001/'
    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-19959.json
  - url: 'https://access.redhat.com/security/cve/CVE-2019-19959'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=1789595'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2019-19959'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2019-19959'
  - url: 'https://access.redhat.com/errata/RHSA-2020:1810'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.03156
epssPercentile: 0.87651
ingestedAt: '2026-10-14T08:23:04.329Z'
patched:
  - enterprise_linux_appstream_v_8
  - enterprise_linux_baseos_v_8
cwe:
  - CWE-626
scores:
  nvd: 7.5
  vendor: 7.3
---

## Overview

ext/misc/zipfile.c in SQLite 3.30.1 mishandles certain uses of INSERT INTO in situations involving embedded '\0' characters in filenames, leading to a memory-management error that can be detected by (for example) valgrind.

## Affected

- `sqlite = 3.30.1`
- `ubuntu_linux = 16.04`
- `ubuntu_linux = 18.04`
- `ubuntu_linux = 19.10`

## Remediation

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

## Vendor advisories

- **RHSA-2020:1810** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 8), Red Hat Enterprise Linux BaseOS (v. 8) · released 2020-04-28 · [advisory](https://access.redhat.com/errata/RHSA-2020:1810)
