Description
hashcat master branch builds after v7.1.2 contain a heap buffer overflow vulnerability in the KeePass AESKDF/KDBX v4 module (module 34301) that allows attackers to corrupt adjacent heap memory by supplying an oversized ninth hash field token. The module accepts up to 600 hex characters for the ninth token field but decodes it into a fixed 256-byte buffer with no length check, allowing a maximal input to write up to 44 bytes past the buffer boundary into adjacent esalt fields and heap chunk metadata, potentially enabling heap corruption or memory access violations.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| hashcat | hashcat | — | — |
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.
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 | — |
References
- Product Repository product patch
- Pull Request issue-tracking patch
- Patch Commit patch
- https://www.vulncheck.com/advisories/hashcat-keepass-kdbx-v4-module-heap-buffer-overflow-via-token-field third-party-advisory