Public Static Final Field References Mutable Object |
| Weakness ID: 607 (Weakness Variant) | Status: Draft |
Description Summary
Example 1
Here, an array (which is inherently mutable) is labeled public static final.
Protect mutable objects by making them private. Restrict access to the getter and setter as well. |
| Nature | Type | ID | Name | View(s) this relationship pertains to![]() |
|---|---|---|---|---|
| ChildOf | Weakness Base | 471 | Modification of Assumed-Immutable Data (MAID) | Development Concepts699 Research Concepts (primary)1000 |
| ChildOf | Weakness Class | 485 | Insufficient Encapsulation | Development Concepts (primary)699 |
| Submissions | ||||
|---|---|---|---|---|
| Submission Date | Submitter | Organization | Source | |
| Anonymous Tool Vendor (under NDA) | Externally Mined | |||
| Modifications | ||||
| Modification Date | Modifier | Organization | Source | |
| 2008-07-01 | Sean Eidemiller | Cigital | External | |
| added/updated demonstrative examples | ||||
| 2008-07-01 | Eric Dalci | Cigital | External | |
| updated Potential Mitigations, Time of Introduction | ||||
| 2008-09-08 | CWE Content Team | MITRE | Internal | |
| updated Relationships, Taxonomy Mappings | ||||
Security-Database help your corporation foresee and avoid any security risks that may impact your IT infrastructure and business applications.