{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "3.54.1.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "ef3c772de3346db20e8c1ff7f8c70c689715f8e2"
            }
          ],
          "repo": "https://github.com/rogerbinns/apsw",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-89"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144970.json"
  },
  "details": "APSW through 3.54.1.0 contains an sql injection vulnerability in the shell's _fmt_sql_identifier function that wraps double-quoted names in square brackets without escaping closing brackets. Attackers can supply a crafted database with a malicious table name that executes SQL when the victim runs .dump and again when the dump is restored.",
  "id": "CVE-2026-144970",
  "modified": "2026-12-04T16:46:31.349674347Z",
  "published": "2026-12-04T14:42:02.161Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144970.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/rogerbinns/apsw"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/rogerbinns/apsw/blob/3.54.1.0/apsw/shell.py#L1478-L1487"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/rogerbinns/apsw/blob/3.54.1.0/apsw/shell.py#L455-L468"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/rogerbinns/apsw/issues/647"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-144970"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/apsw-through-3.54.1.0-sql-injection-via-shell-dump-identifier-quoting"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "APSW through 3.54.1.0 SQL Injection via Shell .dump Identifier Quoting"
}