logo
Home/CWEs/CWE-1087/

CWE-1087 - Class with Virtual Method without a Virtual Destructor

  • Abstraction:Base
  • Structure:Simple
  • Status:Incomplete
  • Release Date:2019-01-03
  • Latest Modification Date:2023-06-29

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

CWE-1076Insufficient Adherence to Expected Conventions