CWE-1082 — Class Instance Self Destruction Control Element
CWE-1082: Class Instance Self Destruction Control Element
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Incomplete |
| Likelihood of exploit | — |
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
- Other: Reduce Reliability
Mitigations
(none listed)
References
- CWE page: https://cwe.mitre.org/data/definitions/1082.html
- CWE list: https://cwe.mitre.org/data/index.html