{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "4.0.6"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b1a2f6fcaa74393ea4e70061744939ec0af8bf5c"
            }
          ],
          "repo": "https://github.com/wummel/patool",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-78"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106057.json"
  },
  "details": "patool before 4.0.6 contains an OS command injection vulnerability on Windows because shell_quote_nt fails to escape cmd.exe metacharacters or embedded double quotes in archive filenames. Attackers can supply crafted filenames like report\u0026calc.gz for single-file formats run with shell=True to execute commands with patool process privileges.",
  "id": "CVE-2026-106057",
  "modified": "2026-10-08T02:30:23.015710113Z",
  "published": "2026-10-07T11:59:37.019Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106057.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/wummel/patool"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/wummel/patool/blob/4.0.5/patoolib/util.py#L110-L116"
    },
    {
      "type": "FIX",
      "url": "https://github.com/wummel/patool/commit/592f35761f428afbcde2888ecd3cc4af43881aeb"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-106057"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/patool-before-4.0.6-os-command-injection-on-windows-via-shell-quote-nt"
    }
  ],
  "schema_version": "1.9.0",
  "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": "patool before 4.0.6 OS Command Injection on Windows via shell_quote_nt"
}