Skip to main content

CWE-697: Incorrect Comparison

PillarStable

Description

View on MITRE
Back to CWE Lookup

Extended Description

Extended Description

Technical Details

Structure
Simple
Vulnerability Mapping
DISCOURAGED

Applicable To

Languages
Languages
Platforms
Languages

Frequently Asked Questions

What is CWE-697: Incorrect Comparison?+

CWE-697: Incorrect Comparison is a Common Weakness Enumeration (CWE) entry maintained by MITRE. Description Extended Description

What are the security consequences of Incorrect Comparison?+

If exploited, CWE-697 (Incorrect Comparison) it can compromise Varies by Context, leading to outcomes such as Scope: Other When the comparison is incorrect and it may lead to resultant weaknesses..

Which programming languages are affected by Incorrect Comparison?+

CWE-697 commonly affects Languages. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Incorrect Comparison?+

MITRE documents real CVEs mapped to CWE-697, including CVE-2021-3116, CVE-2020-15811 and CVE-2016-10003. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-697 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More