CVE-2026-68768
Received Received - Intake

heap-based buffer overflow in hashcat

Vulnerability report for CVE-2026-68768, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-22

Last updated on: 2026-08-22

Assigner: VulnCheck

Description

hashcat contains a heap-based buffer overflow (out-of-bounds write) in the outfile_write() function in src/outfile.c. When assembling output into a fixed-size buffer (HCBUFSIZ_LARGE, ~16 MB), the function sequentially appends the username, separator, hash, and plaintext via memcpy without validating that the accumulated length stays within the buffer capacity. When run with --username --show against a crafted hash file containing an oversized username that nearly fills the buffer, the total assembled output exceeds the buffer, causing a heap buffer overflow that can corrupt memory and crash the process.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-22
Last Modified
2026-08-22
Generated
2026-08-22
AI Q&A
2026-08-22
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 3 associated CPEs
Vendor Product Version / Range
hashcat hashcat *
hashcat hashcat to 7.1.2 (inc)
hashcat hashcat to 7.1.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-120 The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a heap-based buffer overflow in hashcat's outfile_write() function. When processing output with --username and --show flags, the function appends username, separator, hash, and plaintext to a fixed 16MB buffer without checking total length. Crafted oversized usernames can fill most of the buffer, causing subsequent appends to exceed capacity and corrupt memory.

Detection Guidance

To detect this vulnerability, check if hashcat is running with the --username and --show flags against a crafted hash file containing an oversized username. Monitor for crashes like SIGSEGV or ASAN heap-buffer-overflow errors during output formatting.

Impact Analysis

An attacker could exploit this to crash hashcat (SIGSEGV) or potentially execute arbitrary code by corrupting memory. Users running affected versions with --username --show flags on malicious hash files are vulnerable. The crash could disrupt password cracking operations or lead to denial-of-service conditions.

Mitigation Strategies

Update hashcat to the latest patched version that includes bounded appenders in outfile_write to prevent buffer overflows. Avoid using --username and --show flags until patched. Monitor for crashes or memory corruption as indicators of exploitation.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-68768. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart