Katalog CWE

CWE-1096 · Słabość

Singleton Class Instance Creation without Proper Locking or Synchronization

Abstrakcja
Wariant
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

The product implements a Singleton design pattern but does not use appropriate locking or other synchronization mechanism to ensure that the singleton class is only instantiated once.

Skutki

  • Other

    Reduce Reliability

    This issue can prevent the product from running reliably, e.g. by making the instantiation process non-thread-safe and introducing deadlock (CWE-833) or livelock conditions. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Not Language-Specific

Źródła

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

Wpis z katalogu CWE 4.20.