CWE-1025: Comparison Using Wrong Factors, published in 2025
Filter
The code performs a comparison between two entities, but the comparison examines the wrong factors or characteristics of the entities.
What the weakness is: CWE-1025 at MITRE. All weaknesses
Ask an AI about CWE-1025
Show the prompt
Explain CWE-1025: Comparison Using Wrong Factors and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/1025.html and https://cve.bz/cve/cwe/1025?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 6.8CVE-2025-32464haproxyEPSS 1.1%
HAProxy 2.2 through 3.1.6, in certain uncommon configurations, has a sample_conv_regsub heap-based buffer overflow because of mishandling of the replacement of multiple short patterns with a longer one.
- 5.7CVE-2025-2888amazon toughEPSS 0.7%
During a snapshot rollback, the client incorrectly caches the timestamp metadata. If the client checks the cache when attempting to perform the next update, the update timestamp validation will fail, preventing the next update until the ca…
- 5.7CVE-2025-2887amazon toughEPSS 0.7%
During a target rollback, the client fails to detect the rollback for delegated targets. This could cause the client to fetch a target from an incorrect source, altering the target contents. Users should upgrade to tough version 0.20.0 or …
- 9.3CVE-2025-25306misskeyEPSS 0.3%
Misskey is an open source, federated social media platform. The patch for CVE-2024-52591 did not sufficiently validate the relation between the `id` and `url` fields of ActivityPub objects. An attacker can forge an object where they claim …
- 3.2CVE-2025-27839tangem sdkEPSS 0.5%
operations/attestation/AttestationTask.kt in the Tangem SDK before 5.18.3 for Android has a logic flow in offline wallet attestation (genuineness check) that causes verification results to be disregarded during the first scan of a card. Ex…