CWE-543: Use of Singleton Pattern Without Synchronization in a Multithreaded Context
The product uses the singleton pattern when creating a resource within a multithreaded environment.
Last updated
Overview
The use of a singleton pattern may not be thread-safe.
Common consequences
What can happen when CWE-543 is exploited.
Other, Modify Application Data
Affects: Other, Integrity
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Applies to
Languages
How to prevent it
Practical mitigations for CWE-543, grouped by where in the lifecycle they apply.
Use the Thread-Specific Storage Pattern. See References.