CWE-1087β€”Class with Virtual Method without a Virtual Destructor

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

Metadata

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

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.

Common Consequences

Scope:
Other
Impact:
Reduce Reliability
Notes:
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.

Related Weaknesses