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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| hashcat | hashcat | ≤ 7.1.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | hashcat | No fix yet | — |
| Debian 13 | hashcat | No fix yet | — |
| Debian 12 | hashcat | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | hashcat | No fix yet | — |
| Ubuntu 26.04 LTS | hashcat | No fix yet | — |
| Ubuntu 24.04 LTS | hashcat | No fix yet | — |
| Ubuntu 22.04 LTS | hashcat | No fix yet | — |
| Ubuntu 20.04 LTS | hashcat | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | hashcat | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 16.0 | hashcat | 7.1.2+git942-bp160.1.1 | openSUSE-SU-2026:22138-1 |
Advisories 1
- openSUSE-SU-2026:22138-1 Security update for hashcat SUSE / openSUSE Security Updates · Oct 20, 2026
References
- GitHub Issue #4738 issue-tracking
- https://github.com/hashcat/hashcat product
- https://github.com/hashcat/hashcat/commit/fcae69f2438ff8eae0dc8e206b78067a1e465ed4 patch
- https://github.com/hashcat/hashcat/blob/v7.1.2/src/restore.c#L365-L369 technical-description
- VulnCheck Advisory: hashcat through 7.1.2 Arbitrary File Write via Restore File Option Injection third-party-advisory