Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted restore file to victim filesystem
-
DeliveryVictim runs hashcat --restore
-
ExploitInjected --outfile option accepted from restore file without validation
-
Executionhashcat appends attacker-controlled content to target path (e.g., ~/.bashrc)
-
PersistVictim opens new shell session
-
ImpactInjected commands execute at victim privilege level
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | The victim must run 'hashcat --restore' (or the legacy one-step equivalent) against a restore file that has been crafted or modified by an attacker prior to the session resumption. The restore file must reside on the local filesystem accessible to the hashcat process; the attack vector is strictly local (AV:L per CVSS 4.0) and the attacker cannot interact with hashcat directly. Delivery of the malicious restore file requires a separate attack path such as social engineering, a writeable shared network mount, or compromise of an upstream session file store. Exploitation is further gated by the requirement that the victim actively choose to restore a session (UI:P in CVSS 4.0). The vulnerability has no effect during normal hashcat cracking operations that do not use the --restore feature, and it does not allow remote unauthenticated exploitation in any configuration. |
| Impact | CVSS 4.0 scores this at 8.5 with a local attack vector (AV:L), low complexity (AC:L), no privilege requirement on the attacker's part (PR:N), and passive user interaction (UI:P), reflecting that exploitation is contingent on the victim actively running hashcat against a tampered restore file. The high VC/VI/VA ratings are justified - writing to shell startup files achieves persistent code execution at the user level, with potential privilege escalation if the affected account has elevated rights. No EPSS score was provided in the input data, and this CVE is not listed in CISA KEV, so breadth of active exploitation is unconfirmed. The realistic threat actor must first deliver the malicious restore file through a separate channel - social engineering, a shared network path, or a poisoned upstream session file store - which substantially raises the bar for opportunistic mass exploitation. The local-only, user-interaction-dependent nature of the attack means that security teams running shared hashcat environments with collaborative session files represent a meaningfully elevated risk group and should prioritize patching over teams where restore files are never shared. The absence of a confirmed exploit and KEV listing suggests targeted rather than widespread exploitation at this time. |
| Exploit ScenarioDerived | An attacker places a crafted hashcat restore file containing injected options such as '--outfile /home/victim/.bashrc' and attacker-controlled payload content on a shared NFS mount used by a red team or delivers it via social engineering. When the victim runs 'hashcat --restore' referencing this file, hashcat appends the attacker-supplied content to ~/.bashrc. On the victim's next login, the injected shell commands execute with the victim's privileges, achieving persistent code execution. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 22, 2026
Option injection in hashcat's restore file parser (all versions through 7.1.2) allows an attacker who delivers a crafted restore file to append attacker-controlled content to arbitrary files on the victim's system. When a user runs 'hashcat --restore' against the malicious file, output-redirecting options such as --outfile and --potfile-path are accepted from the restore file without restriction, enabling writes to shell startup scripts and subsequent code execution at the victim's privilege level. No public exploit identified at time of analysis; CVSS 4.0 rates this 8.5 with a strictly local attack vector and user interaction required.
RemediationAI
Build hashcat from commit fcae69f2438ff8eae0dc8e206b78067a1e465ed4 or a later tagged release once published at https://github.com/hashcat/hashcat, as the upstream fix is available per vendor (patch reference confirmed). The patch changes --restore to a safe display-only mode and introduces --restore-auto for the previous one-step behavior, allowing users to inspect restore file contents before they are acted upon. Until a patched binary is available, the primary workaround is to use the --restore flag exclusively with restore files you created yourself in a trusted, unmodified environment; never restore sessions from files received from third parties or stored on shared or untrusted paths. If shared session files are operationally required, restrict filesystem permissions on restore file directories to prevent unauthorized modification. The VulnCheck advisory is at https://www.vulncheck.com/advisories/hashcat-through-arbitrary-file-write-via-restore-file-option-injection.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-88 (Argument Injection or Modification) is the root cause: hashcat's restore file mechanism stores and replays command-line arguments but prior to the fix did not filter which options could be injected from the file. The vulnerable code is in src/restore.c (v7.1.2, lines 365-369 per the referenced source). Output path options such as --outfile and --potfile-path accept arbitrary filesystem targets; an attacker can set these to files like ~/.bashrc and shape the hashcat output content to include executable shell commands. CPE cpe:2.3:a:hashcat:hashcat:*:*:*:*:*:*:*:* covers all platforms and architectures. The fix in commit fcae69f2438ff8eae0dc8e206b78067a1e465ed4 replaces the direct restore-and-run behavior with a print-only display mode for --restore (new --restore-auto handles the legacy one-step flow), adds POSIX and Windows shell quoting for all restore file arguments, and escapes non-printable bytes as \xNN to prevent terminal escape sequence injection in the printed output.
Know when Hashcat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Attacker needs no privileges to craft the restore file; victim must actively invoke --restore (UI:R); all impacts remain within the victim's own user context (S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Executive ViewAI
Hashcat versions through 7.1.2 contain an option injection vulnerability enabling attackers to write arbitrary files on systems where users process malicious restore files, potentially achieving code execution with victim privileges. Organizations using hashcat for password auditing or recovery face a social-engineering risk where users could unknowingly execute attacker-supplied code. No public exploit identified at time of analysis.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Heap-based buffer overflow in hashcat 7.1.2 enables remote code execution or denial of service through maliciously craft
Heap-based buffer overflow in hashcat 7.1.2's Kerberos hash parser enables remote code execution without authentication.
Stack-based buffer overflow in hashcat 7.1.2's rule processing functions enables remote code execution when processing p
Heap buffer overflow in hashcat through version 7.1.2 allows an attacker who controls a hash file to crash the process a
Out-of-bounds heap write in hashcat's fgetl() function affects all versions through 7.1.2, triggered by supplying any in
Heap buffer overflow in hashcat's KeePass AESKDF/KDBX v4 cracking module (module_34301.c) exposes master branch builds a
EUVD-2026-64311
GHSA-5qq7-x27p-hfq4
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB