CWE-486: Comparison of Classes by Name
The product compares classes by name.
Last updated
Overview
CWE-486 (Comparison of Classes by Name) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
1 recorded CVE is caused by CWE-486 (Comparison of Classes by Name). 1 new CWE-486 CVE has been recorded so far in 2026.
Common consequences
What can happen when CWE-486 is exploited.
Execute Unauthorized Code or Commands
Affects: Integrity, Confidentiality, Availability
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 it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.