CWE-187: Partial String Comparison
The product performs a string comparison that only examines a portion of the string before determining whether there is a match.
Last updated
Overview
CWE-187 (Partial String Comparison) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
21 recorded CVEs are caused by CWE-187 (Partial String Comparison). The highest-severity and most recent are shown first. 15 new CWE-187 CVEs have been recorded so far in 2026 (3 in 2025).
- CVE-2026-115646
Partial String Comparison Vulnerability in HiRDB
Critical · CVSS 9.8 · EPSS 38th2026-11-10 - CVE-2024-39742
IBM MQ Container authentication bypass
Critical · CVSS 9.8 · EPSS 74th2024-07-08 - CVE-2022-31802
Partial string comparison in CODESYS gateway server
Critical · CVSS 9.8 · EPSS 67th2022-06-24