VYPR

CWE-375

Returning a Mutable Object to an Untrusted Caller

BaseDraftLikelihood: Medium

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.

Hierarchy (View 1000)

Parents

Children

none

CVEs mapped to this weakness (0)

No CVEs match the current filter.