CWE-580: clone() Method Without super.clone()
The product contains a clone() method that does not call super.clone() to obtain the new object.
Last updated
Overview
CWE-580 (clone() Method Without super.clone()) 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.
Common consequences
What can happen when CWE-580 is exploited.
Unexpected State, Quality Degradation
Affects: Integrity, Other
If a class does not follow this convention, a subclass's clone() method will return an object of the wrong type.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Languages
How to prevent it
Practical mitigations for CWE-580, grouped by where in the lifecycle they apply.