CWE-1079βParent Class without Virtual Destructor Method
PUBLISHEDweakness record
released 2019-01-03 Β· last modified 2025-12-11
Metadata
- CWE ID:
- CWE-1079
- Abstraction:
- Base
- Structure:
- Simple
- Status:
- Incomplete
- Release Date:
- 2019-01-03
- Latest Modification Date:
- 2025-12-11
Weakness Name
Parent Class without Virtual Destructor Method
Description
A parent class contains one or more child classes, but the parent class does not have a virtual destructor method.
Common Consequences
- Scope:
- Other
- Impact:
- Reduce Reliability
- Notes:
- This issue can prevent the product from running reliably due to undefined or unexpected behaviors. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.