CWE-491: Public cloneable() Method Without Final ('Object Hijack')
VariantDraft
A class has a cloneable() method that is not declared final, which allows an object to be created without calling the constructor. This can cause the object to be in an unexpected state.
View on MITREBack to CWE Lookup
Technical Details
- Structure
- Simple
Applicable To
Java