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.
Published: 2026-08-22
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Memory Corruption
Action: Patch
AI Analysis

Impact

Hashcat’s fgetl() function writes a null terminator one byte beyond the supplied buffer when the length of an input line exactly equals HCBUFSIZ_LARGE characters. This off‑by‑one out‑of‑bounds heap write can corrupt adjacent heap memory and, if an attacker supplies a crafted hash file, potfile, or wordlist containing such a line, may cause the program to crash or corrupt data used later by the application.

Affected Systems

Vendor hashcat, the open‑source password‑cracking utility hashcat, is affected in version 7.1.2 and earlier. Any installation built from the source code before the corrective commit 93b55d37d3b2340013d4036f10181ddc67d44249 is vulnerable.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting no publicly known exploit. The attack vector is local: an adversary who controls a file provided to hashcat can trigger the heap write. Because the flaw involves unchecked heap boundaries, a skilled attacker might achieve local denial of service or, in the worst case, local code execution, but no remote or privilege‑escalation attacks are documented.

Generated by OpenCVE AI on August 22, 2026 at 15:53 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade hashcat to a patched release newer than 7.1.2 (or apply the commit that fixes the buffer boundary check).
  • Pre‑process all input files to strip or truncate any line that exactly matches HCBUFSIZ_LARGE characters before providing them to hashcat.
  • Periodically check hashcat release notes or use a package manager to ensure that you are running a version that incorporates this fix.

Generated by OpenCVE AI on August 22, 2026 at 15:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 22 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
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.
Title hashcat through 7.1.2 Off-by-One Out-of-Bounds Heap Write in fgetl()
First Time appeared Hashcat
Hashcat hashcat
Weaknesses CWE-193
CPEs cpe:2.3:a:hashcat:hashcat:*:*:*:*:*:*:*:*
Vendors & Products Hashcat
Hashcat hashcat
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 6.9, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-26T16:16:18.796Z

Reserved: 2026-07-31T16:10:55.447Z

Link: CVE-2026-68767

cve-icon Vulnrichment

Updated: 2026-08-26T15:55:34.240Z

cve-icon NVD

Status : Received

Published: 2026-08-22T15:16:20.770

Modified: 2026-08-26T17:17:09.923

Link: CVE-2026-68767

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-22T16:00:13Z

Weaknesses