CWE-1042: Static Member Data Element outside of a Singleton Class Element
Filter
The code contains a member element that is declared as static (but not final), in which its parent class element is not a singleton class - that is, a class element that can be used only once in the 'to' association of a Create action.
What the weakness is: CWE-1042 at MITRE. All weaknesses
Ask an AI about CWE-1042
Show the prompt
Explain CWE-1042: Static Member Data Element outside of a Singleton Class Element and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/1042.html and https://cve.bz/cve/cwe/1042?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
No records match.