VariantDraft
CWE-607Public Static Final Field References Mutable Object
Category: other
Description
A public or protected static final field references a mutable object, which allows the object to be changed by malicious code, or accidentally from another package.
Common consequences· 1
- Integrity — Modify Application Data
Potential mitigations· 1
- [Implementation]Protect mutable objects by making them private. Restrict access to the getter and setter as well.
References
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.