CWE-480: Use of Incorrect Operator

BaseDraftExploit Likelihood: Low

The product accidentally uses the wrong operator, which changes the logic in security-relevant ways.

View on MITRE
Back to CWE Lookup

Extended Description

These types of errors are generally the result of a typo by the programmer.

Technical Details

Structure
Simple

Applicable To

Languages
CC++PerlNot Language-Specific
Platforms

Frequently Asked Questions

What is CWE-480: Use of Incorrect Operator?+

CWE-480: Use of Incorrect Operator is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product accidentally uses the wrong operator, which changes the logic in security-relevant ways. These types of errors are generally the result of a typo by the programmer.

What are the security consequences of Use of Incorrect Operator?+

If exploited, CWE-480 (Use of Incorrect Operator) it can compromise Other, leading to outcomes such as Alter Execution Logic.

How is Use of Incorrect Operator detected?+

CWE-480 can be detected using Automated Static Analysis and Manual Static Analysis. Combining automated tooling with manual review typically yields the best coverage.

Which programming languages are affected by Use of Incorrect Operator?+

CWE-480 commonly affects C, C++, Perl and Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Use of Incorrect Operator?+

MITRE documents real CVEs mapped to CWE-480, including CVE-2022-3979 and CVE-2021-3116. 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-480 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