CWE-1082: Class Instance Self Destruction Control Element
The code contains a class instance that calls the method or function to delete or destroy itself.
Overview
For example, in C++, "delete this" will cause the object to delete itself.
Common consequences
What can happen when CWE-1082 is exploited.
Reduce Reliability
Affects: Other
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.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Terminology & mappings
Mapped taxonomies
- OMG ASCRM (ASCRM-RLB-7)