CVE-2026-68766

Description

A flaw was found in hashcat. This vulnerability allows an attacker to inject malicious command-line options when parsing restore files. By crafting a specially designed restore file, an attacker can append arbitrary content to files, potentially leading to arbitrary code execution on the system.

Statement

Red Hat has rated this vulnerability as Important because an attacker can leverage crafted restore files to append data to sensitive local files, which may lead to arbitrary code execution with the permissions of the executing user. The hashcat package is not shipped in Red Hat Enterprise Linux, limiting exposure to community distributions such as Fedora. Exploitation additionally requires a user to explicitly load an untrusted session restore file.

Mitigation

To mitigate this issue, run hashcat in an isolated environment, such as a container or a dedicated virtual machine, to restrict its access to the host filesystem. Additionally, only process restore files from trusted sources to prevent the injection of malicious command-line options.

Understanding the Weakness (CWE)

Confidentiality,Integrity,Availability,Other

Technical Impact: Execute Unauthorized Code or Commands; Alter Execution Logic; Read Application Data; Modify Application Data

If an attacker can provide an untrusted input that contains argument-separating delimiters, then the resulting command will have more arguments than intended by the developer, potentially changing the expected behavior of the command. Depending on the functionality supported by the extraneous arguments, this may have security-relevant consequences. The attacker could include arguments that allow unintended commands or code to be executed, allow sensitive data to be read or modified, or cause other unintended behavior.

Frequently Asked Questions

Want to get errata notifications? Sign up here.