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

PUBLISHEDweakness record
released 2019-01-03 · last modified 2025-12-11

Metadata

CWE ID:
CWE-1063
摘要:
Base
结构:
Simple
状态:
Incomplete
发布日期:
2019-01-03
更新日期:
2025-12-11

名称

Creation of Class Instance within a Static Code Block

描述

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.

常见后果

范围:
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.

相关 CWE