Skip to main content

hashcat CVE-2026-42482

| EUVDEUVD-2026-26529 CRITICAL
Out-of-bounds Write (CWE-787)
2026-05-01 cve@mitre.org
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Deliver crafted rule file or long password list
  2. Delivery
    User executes hashcat 7.1.2 with -j/-k or -r options
  3. Exploit
    Trigger hex conversion on 128+ char candidate
  4. Install
    Overflow stack buffer in mangle_to_hex function
  5. C2
    Overwrite return address with shellcode pointer
  6. Execute
    Redirect execution to attacker code
  7. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
CVSS changed
May 01, 2026 - 17:52 NVD
9.8 (CRITICAL)
CVE Published
May 01, 2026 - 14:16 nvd
CRITICAL 9.8

DescriptionNVD

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.1%
Top 78% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

SUSE

Severity: High

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy