CWE-187: Partial String Comparison, published in 2022
Filter
The product performs a string comparison that only examines a portion of the string before determining whether there is a match.
What the weakness is: CWE-187 at MITRE. All weaknesses
Ask an AI about CWE-187
Show the prompt
Explain CWE-187: Partial String Comparison and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/187.html and https://cve.bz/cve/cwe/187?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
- 9.8CVE-2022-31802codesys gatewayEPSS 1.2%
In CODESYS Gateway Server V2 for versions prior to V2.3.9.38 only a part of the the specified password is been compared to the real CODESYS Gateway password. An attacker may perform authentication by specifying a small password that matche…