---
title: "CWE-491: Public cloneable() Method Without Final"
url: https://radicalnotion.ai/cwe/cwe-491
type: cwe
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."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-491: Public cloneable() Method Without Final

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 5
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## 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.

## Alternate terms

- Object Hijack

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Applicable platforms

**Languages:** Java (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity, Other | Unexpected State, Varies by Context | - |

## Potential mitigations

### Implementation

Make the cloneable() method final.

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

## Demonstrative examples

### Example 1

In this example, a public class "BankAccount" implements the cloneable() method which declares "Object clone(string accountnumber)":

Bad code:

```java
public class BankAccount implements Cloneable{
    public Object clone(String accountnumber) throws
    CloneNotSupportedException
    {
        Object returnMe = new BankAccount(account number);
        ...
    }
}
```

### Example 2

In the example below, a clone() method is defined without being declared final.

Bad code:

```java
protected Object clone() throws CloneNotSupportedException {
    ...
}
```

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-63685 | - | critical | 9.8 | - | No | 2025-11-20 |
| CVE-2025-60425 | - | high | 8.6 | - | No | 2025-10-27 |
| CVE-2024-39069 | - | high | 7.8 | - | No | 2024-07-09 |
| CVE-2023-28260 | .NET DLL Hijacking Remote Code Execution Vulnerability | high | 7.8 | - | No | 2023-04-11 |
| CVE-2025-55622 | - | medium | 6.5 | - | No | 2025-08-22 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-668](https://radicalnotion.ai/cwe/cwe-668) | Exposure of Resource to Wrong Sphere |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| 7 Pernicious Kingdoms | Mobile Code: Object Hijack | - | - |
| The CERT Oracle Secure Coding Standard for Java (2011) | Sensitive classes must not let themselves be copied | OBJ07-J | - |
| Software Fault Patterns | Unexpected access points | SFP28 | - |

## Frequently asked questions

### What is CWE-491?

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.

### What CVEs are caused by CWE-491?

5 recorded CVEs are attributed to CWE-491, including CVE-2025-63685, CVE-2025-60425 and CVE-2024-39069.

### How do you prevent CWE-491?

Make the cloneable() method final.

### How is CWE-491 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

### What are the consequences of CWE-491?

Exploiting CWE-491 can lead to: Unexpected State, Varies by Context.

### Is CWE-491 actively exploited?

5 recorded CVEs are caused by CWE-491; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/491.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-491). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
