Description
hashcat's fgetl() function in src/filehandling.c writes a null terminator one byte past the caller's buffer when an input line is exactly the buffer length. Attackers can trigger this out-of-bounds heap write by providing a hash file, potfile, or wordlist containing a line of exactly HCBUFSIZ_LARGE bytes.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| hashcat | hashcat | ≤ 7.1.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | hashcat | No fix yet | — |
| Debian 13 | hashcat | No fix yet | — |
| Debian 12 | hashcat | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | hashcat | No fix yet | — |
| Ubuntu 26.04 LTS | hashcat | No fix yet | — |
| Ubuntu 24.04 LTS | hashcat | No fix yet | — |
| Ubuntu 22.04 LTS | hashcat | No fix yet | — |
| Ubuntu 20.04 LTS | hashcat | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | hashcat | No fix yet | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | hashcat | 7.1.2+git942-1.1 | openSUSE-SU-2026:12181-1 |
| openSUSE Leap 16.0 | hashcat | 7.1.2+git942-bp160.1.1 | openSUSE-SU-2026:22138-1 |
Advisories 2
- openSUSE-SU-2026:22138-1 Security update for hashcat SUSE / openSUSE Security Updates · Oct 20, 2026
- openSUSE-SU-2026:12181-1 hashcat-7.1.2+git942-1.1 on GA media SUSE / openSUSE Security Updates · Oct 19, 2026
References
- GitHub Issue #4739 issue-tracking
- https://github.com/hashcat/hashcat product
- https://github.com/hashcat/hashcat/commit/93b55d37d3b2340013d4036f10181ddc67d44249 patch
- https://github.com/hashcat/hashcat/blob/v7.1.2/src/filehandling.c#L1032-L1060 technical-description
- VulnCheck Advisory: hashcat through 7.1.2 Off-by-One Out-of-Bounds Heap Write in fgetl() third-party-advisory