Skip to content

CVE-2026-68768 hashcat through 7.1.2 Heap Buffer Overflow in outfile_write() via Oversized Username

MediumCVSS 6.9 EPSS 0.21%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

8 packages: 1 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/hashcat(Debian 12) = 6.2.6+ds1-1; = 6.2.6+ds2-1; = 7.1.2+ds1-1; = 7.1.2+ds1-2 +3 more No fix listed No fix yet
debian/hashcat(Debian 13) = 6.2.6+ds2-1; = 7.1.2+ds1-1; = 7.1.2+ds1-2; = 7.1.2+ds1-3 +2 more No fix listed No fix yet
debian/hashcat(Debian 14) = 6.2.6+ds2-1; = 7.1.2+ds1-1; = 7.1.2+ds1-2; = 7.1.2+ds1-3 +2 more No fix listed No fix yet
ubuntu/hashcat(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/hashcat(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/hashcat(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/hashcat(Ubuntu 26.10) All versions No fix listed No fix yet
hashcat <= 7.1.2 after 7.1.2 Fixed

Affected products

ProductAffected versionsFixed in
hashcat <= 7.1.2 No fix listed
debian/hashcat(Debian:12) All versions No fix listed
debian/hashcat(Debian:12) = 6.2.6+ds1-1 No fix listed
debian/hashcat(Debian:12) = 6.2.6+ds2-1 No fix listed
debian/hashcat(Debian:12) = 7.1.2+ds1-1 No fix listed
debian/hashcat(Debian:12) = 7.1.2+ds1-2 No fix listed
debian/hashcat(Debian:12) = 7.1.2+ds1-3 No fix listed
debian/hashcat(Debian:12) = 7.1.2+ds1-4 No fix listed
debian/hashcat(Debian:13) All versions No fix listed
debian/hashcat(Debian:13) = 6.2.6+ds2-1 No fix listed
debian/hashcat(Debian:13) = 7.1.2+ds1-1 No fix listed
debian/hashcat(Debian:13) = 7.1.2+ds1-2 No fix listed
debian/hashcat(Debian:13) = 7.1.2+ds1-3 No fix listed
debian/hashcat(Debian:13) = 7.1.2+ds1-4 No fix listed
debian/hashcat(Debian:14) All versions No fix listed
debian/hashcat(Debian:14) = 6.2.6+ds2-1 No fix listed
debian/hashcat(Debian:14) = 7.1.2+ds1-1 No fix listed
debian/hashcat(Debian:14) = 7.1.2+ds1-2 No fix listed
debian/hashcat(Debian:14) = 7.1.2+ds1-3 No fix listed
debian/hashcat(Debian:14) = 7.1.2+ds1-4 No fix listed
ubuntu/hashcat(Ubuntu:22.04) All versions No fix listed
ubuntu/hashcat(Ubuntu:24.04) All versions No fix listed
ubuntu/hashcat(Ubuntu:26.04) All versions No fix listed
ubuntu/hashcat(Ubuntu:26.10) All versions No fix listed

References