Katalog CWE

CWE-1087 · Słabość

Class with Virtual Method without a Virtual Destructor

Abstrakcja
Bazowa
Status
Niekompletny
Dodano
2 lipca 2018
Ostatnia zmiana
11 grudnia 2025

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

A class contains a virtual method, but the method does not have an associated virtual destructor.

Skutki

  • Other

    Reduce Reliability

    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.

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Object-Oriented

Źródła

  1. Automated Source Code Reliability Measure (ASCRM) — Object Management Group (OMG), ASCRM-RLB-15, 2016

Wpis z katalogu CWE 4.20.