CWE-1096 — Singleton Class Instance Creation without Proper Locking or Synchronization
CWE-1096: Singleton Class Instance Creation without Proper Locking or Synchronization
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Variant |
| Status | Incomplete |
| Likelihood of exploit | — |
Description
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.
Common consequences
- Other: Reduce Reliability
Mitigations
(none listed)
References
- CWE page: https://cwe.mitre.org/data/definitions/1096.html
- CWE list: https://cwe.mitre.org/data/index.html