CWE-375 - Returning a Mutable Object to an Untrusted Caller
Medium
- Abstraction:
- Base
- Structure:
- Simple
- Status:
- Draft
- Weakness Name
Returning a Mutable Object to an Untrusted Caller
- Description
Sending non-cloned mutable data as a return value may result in that data being altered or deleted by the calling function.
In situations where functions return references to mutable data, it is possible that the external code which called the function may make changes to the data sent. If this data was not previously cloned, the class will then be using modified data which may violate assumptions about its internal state.
- Common Consequences
Scope: Access Control, Integrity
Impact: Modify Memory
Notes: Potentially data could be tampered with by another function which should not have been tampered with.
- Related Weaknesses
- Release Date:
- 2006-07-19
- Latest Modification Date:
- 2023-06-29
Latest Security News
Common Alerts
InformationalStorable but Non-Cacheable Content
InformationalSec-Fetch-Site Header is Missing
MediumBuffer Overflow
HighLDAP Injection
HighSQL Injection
Top CVE List
Top CWE List
Free online web security scanner