CWE•Variant•Incomplete•16 recent CVEs
CWE-187Partial String Comparison
Description
The product performs a string comparison that only examines a portion of the string before determining whether there is a match.
Common consequences
- Integrity,Access Control→Alter Execution Logic,Bypass Protection MechanismAn attacker might succeed in authentication by providing a small password that matches the associated portion of the larger, correct password.
Potential mitigations
- TestingThoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-1156469.82026-11-10CVE-2026-1253714.82026-11-10CVE-2026-1122665.92026-10-19CVE-2026-945768.02026-10-08CVE-2026-1019146.52026-09-28CVE-2026-814795.82026-09-17CVE-2026-878537.52026-09-09CVE-2026-843762026-09-02CVE-2026-627506.52026-08-11CVE-2026-146875.32026-07-05CVE-2026-456925.42026-06-23CVE-2026-556028.62026-06-22CVE-2026-448375.92026-05-26CVE-2026-350319.92026-04-14CVE-2026-347857.52026-04-02CVE-2025-233843.72025-03-11