#1145171 hashcat: CVE-2026-68766 CVE-2026-68767 CVE-2026-68768

Package:
src:hashcat
Source:
src:hashcat
Submitter:
Salvatore Bonaccorso
Date:
2026-11-15 05:51:03 UTC
Severity:
normal
Tags:
#1145171#5
Date:
2026-08-23 12:32:39 UTC
From:
To:
Hi,

The following vulnerabilities were published for hashcat.

CVE-2026-68766[0]:
| hashcat fails to restrict command-line options when parsing restore
| files, allowing attackers to inject output-redirecting options like
| --outfile and --potfile-path. Attackers can craft restore files with
| malicious options to append attacker-controlled content to arbitrary
| files, enabling code execution when targeting shell startup files.


CVE-2026-68767[1]:
| 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.


CVE-2026-68768[2]:
| 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.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-68766
https://www.cve.org/CVERecord?id=CVE-2026-68766
[1] https://security-tracker.debian.org/tracker/CVE-2026-68767
https://www.cve.org/CVERecord?id=CVE-2026-68767
[2] https://security-tracker.debian.org/tracker/CVE-2026-68768
https://www.cve.org/CVERecord?id=CVE-2026-68768

Regards,
Salvatore

#1145171#10
Date:
2026-11-15 05:49:10 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
hashcat, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1145171@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Echeverri <epsilon@debian.org> (supplier of updated hashcat package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 15 Nov 2026 00:03:37 -0500
Source: hashcat
Architecture: source
Version: 8.0.0+ds1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Security Tools <team+pkg-security@tracker.debian.org>
Changed-By: Daniel Echeverri <epsilon@debian.org>
Closes: 1136004 1145171
Changes:
 hashcat (8.0.0+ds1-1) unstable; urgency=medium
 .
   * New upstream version 8.0.0+ds1
     + Fixes CVE-2026-42482, CVE-2026-42483 and CVE-2026-42484
       (Closes: #1136004)
     + Fixes CVE-2026-68766, CVE-2026-68767 and CVE-2026-68768
       (Closes: #1145171)
   * debian/copyright:
     + Update Files-Excluded for 8.0.0
     + Update copyright entries for new and removed upstream files
     + Extend debian/* copyright years
   * debian/control:
     + Drop kfreebsd-any from Arch field
     + Remove redundant Priority: optional field
     + Bump Standards-Version to 4.7.4
     + Add ${perl:Depends} in Depends
   * debian/patches:
     + Remove fix_ftbfs_in_arm.diff and fix_correct_path_bridges.diff
     + Merge with upstream
     + Remove add_kfreebsd_support.diff, kFreeBSD is no longer supported
     + Refresh remaining patches
   * debian/rules:
     + Build with SHARED=0 to disable the shared library
     + Remove unnecessary files
   * debian/hashcat-data.install:
     + Install new upstream data files
   * debian/hashcat.install:
     + Install feeds and Python bridge files
   * debian/hashcat.links:
     + Add feeds link and remove old Python links
   * debian/hashcat.1:
     + Fix groff warning about escape character
Checksums-Sha1:
 1f3810ddd4d23dd812cac4becf54d58bcb266f45 2151 hashcat_8.0.0+ds1-1.dsc
 da9536d13596fd365d228ca2fb75acb0ae5df6a4 19787744 hashcat_8.0.0+ds1.orig.tar.xz
 30f5ada115834e2000ab9c42201dc4a493a63cc3 16548 hashcat_8.0.0+ds1-1.debian.tar.xz
 abd9c3eb7b92fc7a1c8cf62f2564c8a3bafed5e7 7742 hashcat_8.0.0+ds1-1_amd64.buildinfo
Checksums-Sha256:
 6c571d4bb533b46f1973dd0a7c6ea799c09c6cb75aa6b7892b04b739c507eeb0 2151 hashcat_8.0.0+ds1-1.dsc
 28bfb47edbdefdf5c282e0cdfea7c72eef57034be3feb0e1c5c10eb5907660b7 19787744 hashcat_8.0.0+ds1.orig.tar.xz
 0bf832af987b7eb4a812516bdcc11b30b534ac76f2bdef8b53e425d945bf8def 16548 hashcat_8.0.0+ds1-1.debian.tar.xz
 d241662a8f3da64fe0fc5645500e20d0b66682ec6455f8f1d1d72123ac78d768 7742 hashcat_8.0.0+ds1-1_amd64.buildinfo
Files:
 690335168bab947944ab3e9503cd1b89 2151 net optional hashcat_8.0.0+ds1-1.dsc
 e32cd161fb434d983c6d33284ec9ac26 19787744 net optional hashcat_8.0.0+ds1.orig.tar.xz
 47934b09abd8062499f382cc5063415f 16548 net optional hashcat_8.0.0+ds1-1.debian.tar.xz
 f1324e5ec53b262b48081e7a0dfd9925 7742 net optional hashcat_8.0.0+ds1-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJHBAEBCgAxFiEE0NCFsWnDv9lASFj6IfwpUEtSMNsFAmr5RQ8THGVwc2lsb25A
ZGViaWFuLm9yZwAKCRAh/ClQS1Iw26svEADGpeXkihoj24loMmgrAwsFXaZL6bZR
HPgsx0Fazan7s97ocXfi0UsTUhvVtQ/ZhZks/Us4mI6i2bgIrqh6OKThNXFjmy/m
vOa8EoUWZr24EPfkV36JdQ7cFy9B2cH2ze/gh+wdYy6+JCKHpzh47Tfe5N22oH52
l1buiBdYPSTz09qgHgiNCJy7Dl/r7hbhqOJwHBGB38AqGLWuw9so/3yzBwamhDmG
+GmA9DsLmDKOka6zhZFZvrdRjY7+6Xap+JgyKRIayX8dhdjrTPuDfHnCOe7ZXXtB
R9bBJNYhWtviniGz3m799ucQkmkn+fGQRVWNSTURvziHdtyMbs9g1oSe5c7g/M09
PZvglaxPPm6mnqZj0ZAS0GAVQMDeUGwRCyKA9mqbgl/DPmebmYeppUC3pEl/t8QL
4lyRj5PJvKgGqOIURqgnuedmF8QXbeSCWHsNN1oDLwtkIkNsUVdD7P0shDyHaS7O
ISZo3GjiuxVN6LrmP6+0SdvXq2K3PCZd5nOCm3Lc27yAtHF3htSeMx15GQLzK/a7
CjSPNBUNcY2xCp8nJs9YxyAm5P2ypsP+DIkqKG+UkqJ6Et9ZzSWpjGcRJT2sPuvb
WmQXLw8gzyBfwjMrICvLrDYhd/qSrWkFR4HUJXSVsFfUG7C2Nt3toupPO4NWMi4z
LbgEKQgW/wzM+Q==
=qHm+
-----END PGP SIGNATURE-----