{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "3.54.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "cpe": "cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*",
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "3.54.1"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "57520227c95396ce39ba6ecaac8d475b78dd3964"
            }
          ],
          "repo": "https://github.com/sqlite/sqlite",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-77"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119586.json"
  },
  "details": "SQLite command-line shell through 3.54.1 contains a command injection vulnerability in the .recover command that emits attacker-planted dot-commands stored in sqlite_schema.sql values verbatim. Attackers can craft a database whose schema holds a valid CREATE statement followed by a .shell or .system line, executing OS commands when victims pipe .recover output into sqlite3.",
  "id": "CVE-2026-119586",
  "modified": "2026-11-05T02:30:28.845175669Z",
  "published": "2026-10-30T11:31:15.070Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://sqlite.org/"
    },
    {
      "type": "ADVISORY",
      "url": "https://abraxaslabs.tech/research/sqlite-cli-recover"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/119xxx/CVE-2026-119586.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119586"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/sqlite-cli-through-3.54.1-command-injection-via-recover-output"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/sqlite/sqlite"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/sqlite/sqlite/blob/version-3.54.1/ext/recover/sqlite3recover.c#L1221-L1223"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/sqlite/sqlite/blob/version-3.54.1/src/shell.c.in#L7877-L7891"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SQLite CLI through 3.54.1 Command Injection via .recover Output"
}