CWE-187: Partial String Comparison
The product performs a comparison that only examines a portion of a factor before determining whether there is a match, such as a substring, leading to resultant weaknesses.
Last updated
Overview
For example, an attacker might succeed in authentication by providing a small password that matches the associated portion of the larger, correct password.
Real-world CVEs
5 recorded CVEs are caused by CWE-187 (Partial String Comparison). The highest-severity and most recent are shown first. 2 new CWE-187 CVEs have been recorded so far in 2026 (1 in 2025).