cve.bz

CWE-328: Use of Weak Hash, published in 2021

Filter

The product uses an algorithm that produces a digest (output value) that does not meet security expectations for a hash function that allows an adversary to reasonably determine the original input (preimage attack), find another input that can produce the same hash (2nd preimage attack), or find multiple inputs that evaluate to the same hash (birthday attack).

What the weakness is: CWE-328 at MITRE. OWASP Top 10: A04:2025 Cryptographic Failures. All weaknesses

Related attack patterns (CAPEC): 2
  • CAPEC-68 Subvert Code-signing Facilities Likelihood: Low · Severity: Very High
  • CAPEC-461 Web Services API Signature Forgery Leveraging Hash Function Extension Weakness Severity: High

The attack patterns MITRE's CAPEC relates to CWE-328, as MITRE names them. Credits.

Ask an AI about CWE-328

Show the promptExplain CWE-328: Use of Weak Hash and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/328.html and https://cve.bz/cve/cwe/328?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. 7.5CVE-2021-39182enrocrypt project enrocryptEPSS 0.6%

    EnroCrypt is a Python module for encryption and hashing. Prior to version 1.1.4, EnroCrypt used the MD5 hashing algorithm in the hashing file. Beginners who are unfamiliar with hashes can face problems as MD5 is considered an insecure hash…