CWE-328: Use of Weak Hash, published in 2022
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 prompt
Explain 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
- 6.5CVE-2022-3433haskell aesonEPSS 0.7%
The aeson library is not safe to use to consume untrusted JSON input. A remote user could abuse this flaw to produce a hash collision in the underlying unordered-containers library by sending specially crafted JSON data, resulting in a den…
- 5.3CVE-2022-29835westerndigital wd discoveryEPSS 0.2%
WD Discovery software executable files were signed with an unsafe SHA-1 hashing algorithm. An attacker could use this weakness to create forged certificate signatures due to the use of a hashing algorithm that is not collision-free. This c…
- 7.5CVE-2022-29249javaez project javaezEPSS 0.7%
JavaEZ is a library that adds new functions to make Java easier. A weakness in JavaEZ 1.6 allows force decryption of locked text by unauthorized actors. The issue is NOT critical for non-secure applications, however may be critical in a si…