VariantIncomplete

CWE-1042Static Member Data Element outside of a Singleton Class Element

Category: other

Description

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.

Common consequences· 1

  • Other — Reduce Performance
    This issue can make the product perform more slowly. If the relevant code is reachable by an attacker, then this performance problem might introduce a vulnerability.

References

  1. https://cwe.mitre.org/data/definitions/1042.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Invokable Control Element in Multi-Thread Context with non-Final Static Storable or Member Element
CWE
Public Static Field Not Marked Final
CWE
Creation of Class Instance within a Static Code Block
CWE
Parent Class with References to Child Class
CWE
Data Element containing Pointer Item without Proper Copy Control Element
CWE
Serializable Data Element Containing non-Serializable Item Elements
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.