CWE-1087 - Class with Virtual Method without a Virtual Destructor
CWE-1087
- Abstraction:
- Base
- Structure:
- Simple
- Status:
- Incomplete
- Weakness Name
Class with Virtual Method without a Virtual Destructor
- Description
A class contains a virtual method, but the method does not have an associated virtual destructor.
This issue can prevent the product from running reliably, e.g. due to undefined behavior. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.
- Common Consequences
Scope: Other
Impact: Reduce Reliability
- Related Weaknesses
- Release Date:
- 2019-01-03
- Latest Modification Date:
- 2023-06-29
Free security scan for your website