Common Weakness Enumeration
CWE Definition / CWE-495
CWE-495: Private Data Structure Returned From A Public Method
The product has a method that is declared public, but returns a reference to a private data structure, which could then be modified in unexpected ways.
Published:19 Jul 2006
Organization:MITRE
Modified:28 Oct 2026
Related Weakness
CWE-668: Exposure of Resource to Wrong Sphere
