---
title: "CWE-568: finalize() Method Without super.finalize()"
url: https://radicalnotion.ai/cwe/cwe-568
type: cwe
description: "The product contains a finalize() method that does not call super.finalize()."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-568: finalize() Method Without super.finalize()

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

## Description

The product contains a finalize() method that does not call super.finalize().

## Background

The Java Language Specification states that it is a good practice for a finalize() method to call super.finalize().

## Modes of introduction

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

## Applicable platforms

**Languages:** Java (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Quality Degradation | - |

## Potential mitigations

### Implementation

Call the super.finalize() method.

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

Effectiveness: High

## Demonstrative examples

### Example 1

The following method omits the call to super.finalize().

Bad code:

```java
protected void finalize() {
    discardNative();
}
```

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-459](https://radicalnotion.ai/cwe/cwe-459) | Incomplete Cleanup |
| Parent | [CWE-573](https://radicalnotion.ai/cwe/cwe-573) | Improper Following of Specification by Caller |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| The CERT Oracle Secure Coding Standard for Java (2011) | Do not use finalizers | MET12-J | - |
| Software Fault Patterns | Unexpected access points | SFP28 | - |

## Frequently asked questions

### What is CWE-568?

The product contains a finalize() method that does not call super.finalize().

### How do you prevent CWE-568?

Call the super.finalize() method.

### How is CWE-568 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-568?

Exploiting CWE-568 can lead to: Quality Degradation.

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

---

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