CWE-1063 — Creation of Class Instance within a Static Code Block
CWE-1063: Creation of Class Instance within a Static Code Block
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Incomplete |
| Likelihood of exploit | — |
Description
A static code block creates an instance of a class.
This pattern identifies situations where a storable data element or member data element is initialized with a value in a block of code which is declared as static.
Common consequences
- Other: Reduce Performance
Mitigations
(none listed)
References
- CWE page: https://cwe.mitre.org/data/definitions/1063.html
- CWE list: https://cwe.mitre.org/data/index.html