1. CVE archive
  2. Vulnerability types
  3. CWE-486
CWE-486 · #743 most frequent type in the archive

Comparison of Classes by Name

The product compares classes by name.

Part of: CWE-1025 · Comparison Using Wrong Factors

1CVEs of this type in the archive
0critical (CVSS ≥ 9)
1high severity (7–8.9)
Nov 19, 2026latest published

What it is

The product compares classes by name.

Impact on systems

ScopeImpact
Integrity, Confidentiality, Availability Execute Unauthorized Code or Commands
The product could use the wrong class. If the decision to trust the methods and data of an object is based on the name of a class, it is possible for malicious users to send objects of the same name as trusted classes and thereby gain the trust afforded to known classes and types.

How to prevent it

Implementation Use class equivalency to determine type. Rather than use the class name to determine if an object is of a given type, use the getClass() method, and == operator.

Source: MITRE CWE catalog · Official entry on the MITRE website

All CWE-486 CVEs

1 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.