CWE-491βPublic cloneable() Method Without Final ('Object Hijack')
PUBLISHEDweakness record
released 2006-07-19 Β· last modified 2025-12-11
Metadata
Weakness Name
Public cloneable() Method Without Final ('Object Hijack')
Description
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.