Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconDeliver crafted rule file or long password list
-
DeliveryUser executes hashcat 7.1.2 with -j/-k or -r options
-
ExploitTrigger hex conversion on 128+ char candidate
-
InstallOverflow stack buffer in mangle_to_hex function
-
C2Overwrite return address with shellcode pointer
-
ExecuteRedirect execution to attacker code
-
ImpactExecute arbitrary commands with hashcat process privileges
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires hashcat 7.1.2 processing password candidates of 128 or more characters combined with rule-based hex conversion mangling. Specifically triggered via: (1) -j command-line option invoking mangle_to_hex_lower() on long candidates, (2) -k command-line option invoking mangle_to_hex_upper() on long candidates, or (3) custom rule file containing hex conversion directives applied to lengthy passwords. Standard hashcat usage with default rules and typical password lengths (<64 chars) is NOT vulnerable. Limits exploitation: Attacker must control either the rule file content OR the password candidate input AND ensure candidates exceed 127 characters. Most corporate password policies cap length at 64-128 characters, reducing natural occurrence. Stack-based exploitation requires precise memory layout knowledge varying by platform/compiler, increasing technical complexity versus heap-based overflows. |
| Impact | The CVSS 9.8 score reflects maximum theoretical severity (AV:N/AC:L/PR:N/UI:N) suggesting network-exploitable, unauthenticated remote code execution. However, this requires critical context: hashcat is a password recovery tool typically run locally by security professionals, not a network service. The 'network vector' rating appears to assume scenarios where hashcat processes attacker-controlled rule files or password candidates from remote sources-realistic in distributed cracking deployments or cloud-based password auditing platforms, but NOT the primary use case. POC code exists per GitHub reference, lowering exploitation barrier. No EPSS data provided, but absence from CISA KEV despite POC availability suggests exploitation requires specific deployment contexts rather than broad internet-facing attack surface. Real-world risk is HIGH for: (1) shared hashcat infrastructure accepting user-supplied rules, (2) automated cracking pipelines processing untrusted wordlists, (3) hashcat-as-a-service platforms. Real-world risk is LOW-MEDIUM for: standalone security researcher workstations with trusted input sources. SSVC would likely classify as 'attended' (requires user to load malicious rules) rather than 'automatable' for most deployments. |
| Exploit ScenarioDerived | Attacker crafts malicious hashcat rule file containing hex conversion directives and distributes it via password cracking forums or shared wordlist repositories. Security researcher downloads and executes hashcat with '-r malicious.rule' against a candidate list containing 128+ character passwords. The hex conversion triggers buffer overflow, overwriting stack return address to redirect execution to attacker-controlled shellcode embedded in the rule file or password candidate. Alternatively, in cloud-based password auditing platforms accepting user-uploaded rules, attacker submits crafted rule to compromise the cracking infrastructure. POC code demonstrating exploitation exists per GitHub reference. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 01, 2026
Stack-based buffer overflow in hashcat 7.1.2's rule processing functions enables remote code execution when processing password candidates of 128+ characters. The vulnerability stems from inadequate bounds checking in mangle_to_hex_lower() and mangle_to_hex_upper() functions that fail to account for 2x memory expansion during byte-to-hex conversion. CVSS 9.8 (critical) with network attack vector and no authentication required. Public proof-of-concept code available via GitHub gist. No CISA KEV listing suggests targeted rather than widespread exploitation despite theoretical network exploitability.
RemediationAI
Primary mitigation: Upgrade to hashcat version newer than 7.1.2 once patched release becomes available. Monitor hashcat GitHub repository (https://github.com/hashcat/hashcat) for security advisories and commits addressing CVE-2026-42482. Immediate compensating controls for version 7.1.2: (1) Restrict password candidate length to <128 characters when using -j/-k hex conversion rules-enforced via pre-processing scripts or input validation (trade-off: limits testing of long passphrases). (2) Audit and sanitize all rule files before use-reject rules invoking hex mangling on untrusted input (trade-off: manual review overhead, potential missed attack patterns). (3) Run hashcat in sandboxed/containerized environments with limited privileges to contain potential RCE impact (trade-off: performance overhead from isolation). (4) For multi-user or cloud deployments, implement strict input validation rejecting rule files and candidates from untrusted sources (trade-off: reduces flexibility for collaborative cracking). POC analysis at https://gist.github.com/sgInnora/107f2eb20367e47d58c911e38d56a91f provides technical validation for testing mitigations.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in hashcat's rule engine implementation (src/rp_cpu.c), specifically in functions that convert password bytes to hexadecimal representation. Hashcat uses rule-based password mangling to generate candidate passwords during hash cracking operations. The affected functions allocate fixed-size stack buffers but fail to validate that the 2x expansion from byte-to-hex conversion fits within allocated space. When processing passwords ≥128 characters with hex conversion rules (invoked via -j/-k command-line options or embedded in rule files), the conversion writes beyond buffer boundaries. This is a classic CWE-787 (Out-of-bounds Write) condition affecting the stack memory region. CPE identifies hashcat:hashcat:7.1.2 as affected. The stack-based nature makes exploitation more complex than heap overflows but potentially enables return address overwriting for control-flow hijacking.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
A stack-based buffer overflow in mangle_to_hex_lower() and mangle_to_hex_upper() in src/rp_cpu.c in hashcat v7.1.2 allows an attacker to cause a denial of service or possibly execute arbitrary code via a crafted rule file, or via the -j or -k rule options used with password candidates of 128 or more characters. The vulnerability is caused by a bounds check that fails to account for the 2x expansion that occurs when password bytes are converted to hexadecimal.
Executive ViewAI
Hashcat 7.1.2 contains a critical remote code execution vulnerability in its rule processing engine that allows unauthenticated attackers to execute arbitrary code by submitting malicious password candidate inputs exceeding 128 characters. This impacts any organization using hashcat for password analysis, cracking, or security testing, potentially allowing attackers to compromise systems running the affected software or use compromised hashcat instances as pivot points for lateral movement.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict hashcat network accessibility by deploying behind firewall rules permitting only authorized internal IP ranges; (2) Implement input sanitization to reject rule files or candidate inputs exceeding 128 characters before hashcat processing; (3) Run hashcat in isolated, non-production environments with no lateral network access; (4) Monitor process execution and network connections from hashcat instances for anomalous activity; (5) Downgrade to hashcat 7.0.x or earlier verified versions pending patch release, with testing to validate functionality.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Heap-based buffer overflow in hashcat 7.1.2's Kerberos hash parser enables remote code execution without authentication.
Heap-based buffer overflow in hashcat 7.1.2 enables remote code execution or denial of service through maliciously craft
Option injection in hashcat's restore file parser (all versions through 7.1.2) allows an attacker who delivers a crafted
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-26529
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB