CWE-1025: Comparison Using Wrong Factors
The code performs a comparison between two entities, but the comparison examines the wrong factors or characteristics of the entities.
Last updated
Overview
CWE-1025 (Comparison Using Wrong Factors) is a class-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
41 recorded CVEs are caused by CWE-1025 (Comparison Using Wrong Factors). The highest-severity and most recent are shown first. 28 new CWE-1025 CVEs have been recorded so far in 2026 (8 in 2025).
- CVE-2026-82442
Apache StormCrawler: HostURLFilter Domain Scoping Silently Disabled by a Wrong Variable Check
Critical · CVSS 9.1 · EPSS 47th2026-11-24 - CVE-2026-74521
ksmbd: use memcmp() to compare ClientGUIDs
Critical · CVSS 9.1 · EPSS 41th2026-08-15 - CVE-2026-72320
netfilter: nft_lookup: fix catchall element handling with inverted lookups