1. CVE archive
  2. Vulnerability types
  3. CWE-187
CWE-187 · #331 most frequent type in the archive

Partial String Comparison

The product performs a string comparison that only examines a portion of the string before determining whether there is a match.

Part of: CWE-1023 · Incomplete Comparison with Missing Factors

19CVEs of this type in the archive
3critical (CVSS ≥ 9)
5high severity (7–8.9)
Dec 1, 2026latest published

What it is

The product performs a string comparison that only examines a portion of the string before determining whether there is a match.

Impact on systems

ScopeImpact
Integrity, Access Control Alter Execution Logic, Bypass Protection Mechanism
An attacker might succeed in authentication by providing a small password that matches the associated portion of the larger, correct password.

How to prevent it

Testing Thoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-187 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20221
20241
20251
202616

All CWE-187 CVEs

19 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.