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

- Severity: Medium 6.9 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-22T14:12:44.241Z
- Modified: 2026-10-14T13:10:00.187Z
- Weaknesses: CWE-120
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- hashcat hashcat: up to 7.1.2

## Every score

- VulnCheck: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H`

## References

- <https://github.com/hashcat/hashcat/issues/4740> (exploit, 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)
- <https://www.vulncheck.com/advisories/hashcat-through-heap-buffer-overflow-in-outfile-write-via-oversized-username> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-68768](https://www.cve.org/CVERecord?id=CVE-2026-68768), CVE Terms of Use, modified 2026-08-24
- NVD: [CVE-2026-68768](https://nvd.nist.gov/vuln/detail/CVE-2026-68768), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2026-68768 · Whole record: https://cve.day/CVE-2026-68768.json · Rebuilt by cve.day 2026-11-25T22:59:34.878Z
