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, which can lead to incorrect results and resultant weaknesses.
Last updated
Overview
CWE-1025 (Comparison Using Wrong Factors) is a base-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
17 recorded CVEs are caused by CWE-1025 (Comparison Using Wrong Factors). The highest-severity and most recent are shown first. 12 new CWE-1025 CVEs have been recorded so far in 2026 (4 in 2025).
- CVE-2023-54390
PocketMine-MP before 5.3.1 Denial of Service via LoginPacket
High · CVSS 8.7 · EPSS 26th2026-09-09 - CVE-2026-75840
ArcadeDB before 26.8.1 Arbitrary File Read via Unescaped Regex
High · CVSS 8.7 · EPSS 36th2026-08-18 - CVE-2025-71377
stoatchat before 20250210-1 Unrestricted Message History Fetch
High · CVSS 8.7 · EPSS 51th2026-07-16