CVE-2026-68766
Received Received - Intake

hashcat Command Line Injection via Restore File

Vulnerability report for CVE-2026-68766, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-22

Last updated on: 2026-08-22

Assigner: VulnCheck

Description

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-22
Last Modified
2026-08-22
Generated
2026-08-22
AI Q&A
2026-08-22
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
hashcat hashcat *
hashcat hashcat to 7.1.2 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-88 The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in hashcat allows attackers to inject malicious command-line options like --outfile and --potfile-path into restore files. When hashcat parses these files during a restore operation, it executes the injected options, enabling arbitrary file writes. Attackers can append malicious content to critical files such as shell startup files, leading to potential code execution when the victim logs in.

Detection Guidance

Check for suspicious restore files in hashcat's working directory, particularly those with unusual command-line options like --outfile or --potfile-path. Inspect shell startup files (.bashrc, .zshrc) for unexpected content. Use commands like 'find / -name "*.restore" -exec grep -l "outfile\|potfile-path" {} \;' to locate potentially malicious restore files.

Impact Analysis

If you use hashcat versions up to 7.1.2, an attacker could craft a malicious restore file to write arbitrary data to your files. This could include adding commands to your shell startup files (e.g., .bashrc), which would execute the next time you log in. This could lead to full system compromise, data theft, or further attacks on your system.

Compliance Impact

This vulnerability could lead to unauthorized code execution and data access, violating confidentiality and integrity requirements in GDPR and HIPAA. If exploited, it may result in unauthorized disclosure of sensitive data, triggering compliance breaches and potential legal penalties.

Mitigation Strategies

Update hashcat to the latest version where the restore file parsing flaw is fixed. Avoid using restore files from untrusted sources. If using --restore, switch to --restore-position or --restore-auto for safer session recovery. Review and sanitize shell startup files for unauthorized modifications.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68766. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart