BaseIncomplete

CWE-1063Creation of Class Instance within a Static Code Block

Category: other

Description

A static code block creates an instance of a class.

Common consequences· 1

  • Other — Reduce Performance
    This issue can make the product perform more slowly by performing initialization before it is needed. 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/1063.html

Related by meaning· 6

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

CWE
Static Member Data Element outside of a Singleton Class Element
CWE
Class Instance Self Destruction Control Element
CWE
Method Containing Access of a Member Element from Another Class
CWE
Public Static Field Not Marked Final
CWE
Class with Virtual Method without a Virtual Destructor
CWE
Parent Class with References to Child Class
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.