CVE-2026-68768
published medium CVSS 4.0 · 6.9hashcat through 7.1.2 Heap Buffer Overflow in outfile_write() via Oversized Username
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| hashcat | — | hashcat0 through 7.1.2 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| SUSE / openSUSE | openSUSE-Leap-16.0 | hashcatx86_64 | Advisory build | 7.1.2+git942-bp160.1.1 | OPENSUSE-SU-2026:22138-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hashcataarch64 | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hashcatppc64le | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hashcats390x | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hashcatx86_64 | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | hashcat-develx86_64 | Advisory build | 7.1.2+git942-bp160.1.1 | OPENSUSE-SU-2026:22138-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libhashcat7x86_64 | Advisory build | 7.1.2+git942-bp160.1.1 | OPENSUSE-SU-2026:22138-1 |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | hashcat-develaarch64 | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hashcat-develppc64le | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hashcat-devels390x | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | hashcat-develx86_64 | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libhashcat7aarch64 | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libhashcat7ppc64le | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libhashcat7s390x | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libhashcat7x86_64 | Advisory build | 7.1.2+git942-1.1 | OPENSUSE-SU-2026:12181-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.1 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| hashcat | hashcat | 0 through 7.1.2 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-120 Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
References
5- https://github.com/hashcat/hashcat
- https://github.com/hashcat/hashcat/blob/v7.1.2/src/outfile.c#L654-L668
- https://github.com/hashcat/hashcat/commit/68f56a2d8712867a8520bf4dcf07f6145c23df89
- GitHub Issue #4740 https://github.com/hashcat/hashcat/issues/4740
- VulnCheck Advisory: hashcat through 7.1.2 Heap Buffer Overflow in outfile_write() via Oversized Username https://www.vulncheck.com/advisories/hashcat-through-heap-buffer-overflow-in-outfile-write-via-oversized-username
Provider assertions
2VulnCheck · cna
hashcat through 7.1.2 Heap Buffer Overflow in outfile_write() via Oversized Username
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1e7faf85874563f1257fc2d8703971f5fec457d9c0476a03ce5ef0d806cc04cf
- Ingested
- 23 Sep 2026, 09:27:38 UTC
- Source record
- Official CVE record