Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-19959

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-19959
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:29 UTC · Revision 1

Source evidence

CVE-2019-19959

core-osv · Original source

Published 3 Jan 2020, 22:15 UTC

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.

osv:CVE-2019-19959
Complete source record
{
  "id": "3c275ee4003630b5127f58ec38b8def4aad27d57788e69165c51aa75595e87f4",
  "url": "https://osv.dev/vulnerability/CVE-2019-19959",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-19959",
    "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.",
    "evidence": "osv:CVE-2019-19959",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2019-19959",
      "aliases": [
        "CVE-2019-19959"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sqlite/sqlite",
              "type": "GIT",
              "events": [
                {
                  "introduced": "25e9591209453dc0904f8f0f1c4d5090c836e19b"
                },
                {
                  "last_affected": "25e9591209453dc0904f8f0f1c4d5090c836e19b"
                },
                {
                  "fixed": "1e490c4ca6b43a9cf8637d695907888349f69bec"
                },
                {
                  "fixed": "d8f2d46cbc9925e034a68aaaf60aad788d9373c1"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:sqlite:sqlite:3.30.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.30.1"
                      },
                      {
                        "last_affected": "3.30.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "1e490c4ca6b43a9cf8637d695907888349f69bec"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d8f2d46cbc9925e034a68aaaf60aad788d9373c1"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.30.1",
            "version-3.30.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-19959.json",
            "vanir_signatures": [
              {
                "id": "CVE-2019-19959-431abe6e",
                "digest": {
                  "length": 3477,
                  "function_hash": "104339471913397942939802911122431979945"
                },
                "source": "https://github.com/sqlite/sqlite/commit/d8f2d46cbc9925e034a68aaaf60aad788d9373c1",
                "target": {
                  "file": "ext/misc/zipfile.c",
                  "function": "zipfileStep"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-19959-59eebaea",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "71814066614843432280980704712041473121",
                    "216645858504996865357112267072969184675",
                    "239335266313309969182533178229610865249",
                    "311079271625203409937280754956246384681",
                    "121580900095085822418106151995070470985",
                    "164197602074587106059057669333140638102",
                    "129292076946546125971028062544365850448",
                    "327556687166518588200911711471829254530",
                    "313001803275392618590594638361048665402",
                    "128213423916597175769527743849561227405",
                    "60063495468950244746442318769766841350",
                    "158794796601896323848342222817397211861"
                  ]
                },
                "source": "https://github.com/sqlite/sqlite/commit/d8f2d46cbc9925e034a68aaaf60aad788d9373c1",
                "target": {
                  "file": "ext/misc/zipfile.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2019-19959-b8c3c9ae",
                "digest": {
                  "length": 3893,
                  "function_hash": "59544577747646981207317814512786475191"
                },
                "source": "https://github.com/sqlite/sqlite/commit/d8f2d46cbc9925e034a68aaaf60aad788d9373c1",
                "target": {
                  "file": "ext/misc/zipfile.c",
                  "function": "zipfileUpdate"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T13:42:13Z"
          }
        }
      ],
      "modified": "2026-10-20T13:42:13.296559780Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-398330.html",
        "https://github.com/sqlite/sqlite/commit/1e490c4ca6b43a9cf8637d695907888349f69bec",
        "https://security.netapp.com/advisory/ntap-20200204-0001/",
        "https://usn.ubuntu.com/4298-1/",
        "https://www.oracle.com/security-alerts/cpuapr2020.html",
        "https://github.com/sqlite/sqlite/commit/d8f2d46cbc9925e034a68aaaf60aad788d9373c1"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "19.10"
                  },
                  {
                    "last_affected": "19.10"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2019-19959",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 387975,
  "published_at": "2020-01-03T22:15:12.55+00:00"
}