hashcat — security advisory
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.
- Products
- hashcat
- Affected versions
- 6.2.6+ds1-1, 6.2.6+ds2-1, 7.1.2+ds1-1, 7.1.2+ds1-2, 7.1.2+ds1-3, 7.1.2+ds1-4
- Fixed versions
- Not specified
- CVEs
- CVE-2026-68768
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 16:51 UTC · Revision 1
Source evidence
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.
osv:DEBIAN-CVE-2026-68768
hashcat
Fixed versions: Not specified
hashcat
Fixed versions: Not specified
hashcat
Fixed versions: Not specified
Complete source record
{
"id": "8bbc2bb4e837ce13b420fa137ea546ed641f023e155134cf5cda6b6ef0f21c8d",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-68768",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-68768",
"summary": "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.",
"evidence": "osv:DEBIAN-CVE-2026-68768",
"products": [
{
"name": {
"value": "hashcat",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.2.6+ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "6.2.6+ds2-1",
"evidence": "/affected/0/versions"
},
{
"value": "7.1.2+ds1-1",
"evidence": "/affected/0/versions"
},
{
"value": "7.1.2+ds1-2",
"evidence": "/affected/0/versions"
},
{
"value": "7.1.2+ds1-3",
"evidence": "/affected/0/versions"
},
{
"value": "7.1.2+ds1-4",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "hashcat",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.2.6+ds2-1",
"evidence": "/affected/1/versions"
},
{
"value": "7.1.2+ds1-1",
"evidence": "/affected/1/versions"
},
{
"value": "7.1.2+ds1-2",
"evidence": "/affected/1/versions"
},
{
"value": "7.1.2+ds1-3",
"evidence": "/affected/1/versions"
},
{
"value": "7.1.2+ds1-4",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "hashcat",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "6.2.6+ds2-1",
"evidence": "/affected/2/versions"
},
{
"value": "7.1.2+ds1-1",
"evidence": "/affected/2/versions"
},
{
"value": "7.1.2+ds1-2",
"evidence": "/affected/2/versions"
},
{
"value": "7.1.2+ds1-3",
"evidence": "/affected/2/versions"
},
{
"value": "7.1.2+ds1-4",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2026-68768",
"aliases": [
"DEBIAN-CVE-2026-68768"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "hashcat",
"purl": "pkg:deb/debian/hashcat?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"6.2.6+ds1-1",
"6.2.6+ds2-1",
"7.1.2+ds1-1",
"7.1.2+ds1-2",
"7.1.2+ds1-3",
"7.1.2+ds1-4"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-68768.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "hashcat",
"purl": "pkg:deb/debian/hashcat?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"6.2.6+ds2-1",
"7.1.2+ds1-1",
"7.1.2+ds1-2",
"7.1.2+ds1-3",
"7.1.2+ds1-4"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-68768.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "hashcat",
"purl": "pkg:deb/debian/hashcat?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"6.2.6+ds2-1",
"7.1.2+ds1-1",
"7.1.2+ds1-2",
"7.1.2+ds1-3",
"7.1.2+ds1-4"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-68768.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T09:47:42.359047116Z",
"provider": "osv",
"upstream": [
"CVE-2026-68768"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-68768"
]
},
"related_cves": [
{
"value": "CVE-2026-68768",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 328423,
"published_at": "2026-08-22T15:16:20.903+00:00"
}