CWE-1082β€”Class Instance Self Destruction Control Element

PUBLISHEDweakness record
released 2019-01-03 Β· last modified 2025-12-11

Metadata

CWE ID:
CWE-1082
Abstraction:
Base
Structure:
Simple
Status:
Incomplete
Release Date:
2019-01-03
Latest Modification Date:
2025-12-11

Weakness Name

Class Instance Self Destruction Control Element

Description

The code contains a class instance that calls the method or function to delete or destroy itself.

For example, in C++, "delete this" will cause the object to delete itself.

Common Consequences

Scope:
Other
Impact:
Reduce Reliability
Notes:
This issue can prevent the product from running reliably. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.

Related Weaknesses