{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "7.1.2"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fcae69f2438ff8eae0dc8e206b78067a1e465ed4"
            }
          ],
          "repo": "https://github.com/hashcat/hashcat",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-88"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68766.json"
  },
  "details": "hashcat fails to restrict command-line options when parsing restore files, allowing attackers to inject output-redirecting options like --outfile and --potfile-path. Attackers can craft restore files with malicious options to append attacker-controlled content to arbitrary files, enabling code execution when targeting shell startup files.",
  "id": "CVE-2026-68766",
  "modified": "2026-08-25T03:51:42.932940062Z",
  "published": "2026-08-22T14:12:42.748Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68766.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-68766"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/hashcat-through-arbitrary-file-write-via-restore-file-option-injection"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/hashcat/hashcat/issues/4738"
    },
    {
      "type": "FIX",
      "url": "https://github.com/hashcat/hashcat/commit/fcae69f2438ff8eae0dc8e206b78067a1e465ed4"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/hashcat/hashcat"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/hashcat/hashcat/blob/v7.1.2/src/restore.c#L365-L369"
    }
  ],
  "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": "hashcat through 7.1.2 Arbitrary File Write via Restore File Option Injection"
}