Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-1025 (使用错误要素进行比较) — Vulnerability Class 19

19 vulnerabilities classified as CWE-1025 (使用错误要素进行比较). AI Chinese analysis included.

CWE-1025 represents a logical flaw where code compares entities based on incorrect attributes, leading to erroneous security decisions. This weakness typically arises when developers assume two objects are equivalent based on superficial similarities, such as comparing memory addresses instead of content, or using hash values without verifying integrity. Attackers exploit this by crafting inputs that satisfy the flawed comparison criteria, potentially bypassing authentication checks or authorization controls. For instance, an attacker might inject data that matches a weak identifier used for session validation. To prevent this, developers must ensure comparisons rely on robust, unique identifiers and validate all relevant characteristics of the entities involved. Rigorous code reviews and unit testing focused on edge cases help identify these logical errors, ensuring that security-critical decisions are based on accurate and comprehensive data analysis rather than misleading or incomplete factors.

MITRE CWE Description
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.
Common Consequences (1)
Other Varies by Context
This can lead to incorrect results and resultant weaknesses. For example, the code might inadvertently compare references to objects, instead of the relevant contents of those objects, causing two "equal" objects to be considered unequal.
Examples (1)
In the example below, two Java String objects are declared and initialized with the same string values. An if statement is used to determine if the strings are equivalent.
String str1 = new String("Hello"); String str2 = new String("Hello"); if (str1 == str2) { System.out.println("str1 == str2"); }
Bad · Java
if (str1.equals(str2)) { System.out.println("str1 equals str2"); }
Good · Java
CVE ID Title CVSS Severity Published
CVE-2026-123592 Hickory DNS 0.26.0-beta.1 before 0.26.2 DNSSEC Validation Bypass via Name Hash Collision — hickory-dns 5.9 Medium 2026-11-08
CVE-2026-114649 Authentication bypass via issuer-and-serial-only certificate equality in shared cluster cache — C# Driver 6.8 Medium 2026-10-22
CVE-2026-104048 Sssd: sssd: authorization bypass via cross-domain username collision in hbac evaluation — Red Hat Enterprise Linux 10 6.8 Medium 2026-10-06
CVE-2026-100248 Rattadan Cosmowarp智能合约管理员比较漏洞 — Cosmowarp Contract 8.4 High 2026-09-25
CVE-2026-14441 Logic flaw in SANnav Java cache key handling object comparison handling — SANnav 6.9 Medium 2026-09-24
CVE-2026-93854 OpenStack Blazar低于17.0.1越权删除漏洞 — Blazar 7.2 High 2026-09-18
CVE-2026-29811 CyberPanel 处理逻辑错误漏洞 — CyberPanel 7.7 High 2026-09-13
CVE-2023-54390 PocketMine-MP before 5.3.1 Denial of Service via LoginPacket — PocketMine-MP 7.5 High 2026-09-09
CVE-2026-75840 ArcadeDB before 26.8.1 Arbitrary File Read via Unescaped Regex — arcadedb 7.5 High 2026-08-18
CVE-2025-71377 stoatchat before 20250210-1 Unrestricted Message History Fetch — stoatchat - - 2026-07-16
CVE-2026-9800 Keycloak-policy-enforcer: keycloak policy enforcer: authorization bypass via incorrect uri comparison — Red Hat build of Keycloak 26.4 8.1 High 2026-06-25
CVE-2026-48860 Distribution-over-TLS LAN allowlist silently bypassed due to sockname/peername confusion in inet_tls_dist — OTP 7.5 High 2026-06-10
CVE-2026-40880 Zebra: Cached Mempool Verification Bypasses Consensus Rules for Ahead-of-Tip Blocks — zebrad 7.5AI High AI 2026-04-21
CVE-2026-40227 systemd 安全漏洞 — systemd 6.2 Medium 2026-04-10
CVE-2025-32464 HAProxy 安全漏洞 — HAProxy 6.8 Medium 2025-04-09
CVE-2025-2888 Improper timestamp caching during snapshot rollback in tough — tough 3.7AI Low AI 2025-03-27
CVE-2025-2887 Failure to detect delegated target rollback in tough — tough 5.3AI Medium AI 2025-03-27
CVE-2025-27839 Tangem 安全漏洞 — SDK 3.2 Low 2025-03-07
CVE-2024-20342 Cisco Firepower Threat Defense Software Rate Filter Bypass Vulnerability — Cisco Firepower Threat Defense Software 5.8 Medium 2024-10-23

Vulnerabilities classified as CWE-1025 (使用错误要素进行比较) represent 19 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.