CWE-500β€”Public Static Field Not Marked Final

PUBLISHEDweakness recordHigh
released 2006-07-19 Β· last modified 2025-12-11

Metadata

CWE ID:
CWE-500
Abstraction:
Variant
Structure:
Simple
Status:
Draft
Release Date:
2006-07-19
Latest Modification Date:
2025-12-11

Weakness Name

Public Static Field Not Marked Final

Description

An object contains a public static field that is not marked final, which might allow it to be modified in unexpected ways.

Public static variables can be read without an accessor and changed without a mutator by any classes in the application.

Common Consequences

Scope:
Integrity
Impact:
Modify Application Data
Notes:
The object could potentially be tampered with.
Scope:
Confidentiality
Impact:
Read Application Data
Notes:
The object could potentially allow the object to be read.

Related Weaknesses