CVE-2026-42482

NameCVE-2026-42482
DescriptionA stack-based buffer overflow in mangle_to_hex_lower() and mangle_to_hex_upper() in src/rp_cpu.c in hashcat v7.1.2 allows an attacker to cause a denial of service or possibly execute arbitrary code via a crafted rule file, or via the -j or -k rule options used with password candidates of 128 or more characters. The vulnerability is caused by a bounds check that fails to account for the 2x expansion that occurs when password bytes are converted to hexadecimal.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
hashcat (PTS)bookworm6.2.6+ds1-1fixed
trixie6.2.6+ds2-1fixed
forky, sid8.0.0+ds1-2fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
hashcatsource(unstable)(not affected)

Notes

- hashcat <not-affected> (Vulnerable code introduced later)
https://github.com/hashcat/hashcat/issues/4664
https://gist.github.com/sgInnora/107f2eb20367e47d58c911e38d56a91f
Introduced with: https://github.com/hashcat/hashcat/commit/195e14cb8202e7a2a757765ef008773544bb0236 (v8.0.0)
Fixed by: https://github.com/hashcat/hashcat/commit/5381eddb13c0a991aeb4ec4d433cc8df4851bbc0 (v8.0.0)

Search for package or bug name: Reporting problems