Common Weakness Enumeration

    CWE Definition / CWE-491

    CWE-491: Public cloneable() Method Without Final ('Object Hijack')

    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.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-668: Exposure of Resource to Wrong Sphere