logo

CWE-1079 - Parent Class without Virtual Destructor Method

CWE-1079

  • Abstraction:
  • Base
  • Structure:
  • Simple
  • Status:
  • Incomplete
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.

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.

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