VariantDraft
CWE-491Public cloneable() Method Without Final ('Object Hijack')
Category: other
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.
Common consequences· 1
- Integrity / Other — Unexpected State, Varies by Context
Potential mitigations· 1
- [Implementation]Make the cloneable() method final.
References
(incoming)2
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Vulnerability | CVE-2025-60425cve-2025-60425 | 0% | live |
| Vulnerability | CVE-2025-63685cve-2025-63685 | 0% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.