Vulnerability · Published Aug 22, 2026 · Assigned by VulnCheck
CVE-2026-68768hashcat through 7.1.2 Heap Buffer Overflow in outfile_write() via Oversized Username
Medium 6.1
In plain English
A medium-severity buffer overflow in hashcat from hashcat. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 11% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | hashcat | no fix listed | DEBIAN-CVE-2026-68768 |
| Debian:13 | hashcat | no fix listed | DEBIAN-CVE-2026-68768 |
| Debian:14 | hashcat | no fix listed | DEBIAN-CVE-2026-68768 |
| Ubuntu:22.04:LTS | hashcat | no fix listed | UBUNTU-CVE-2026-68768 |
| Ubuntu:24.04:LTS | hashcat | no fix listed | UBUNTU-CVE-2026-68768 |
| Ubuntu:26.04:LTS | hashcat | no fix listed | UBUNTU-CVE-2026-68768 |
| Ubuntu:26.10 | hashcat | no fix listed | UBUNTU-CVE-2026-68768 |
Affected products (as reported)
Weakness: CWE-120 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
References
- GitHub Issue #4740 issue-tracking
- https://github.com/hashcat/hashcat product
- https://github.com/hashcat/hashcat/commit/68f56a2d8712867a8520bf4dcf07f6145c23df89 patch
- https://github.com/hashcat/hashcat/blob/v7.1.2/src/outfile.c#L654-L668 technical-description
- VulnCheck Advisory: hashcat through 7.1.2 Heap Buffer Overflow in outfile_write() via Oversized Username third-party-advisory