CWE-495Variant

Private Data Structure Returned From A Public Method

Draft in the CWE catalog · 1 CVE mapped

1
CVEs mapped
6.5
Median CVSS
What it is

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.

Recent examples
6.5cvss
CVE-2025-29868

Apache Answer: Using externally referenced images can leak user privacy.

Private Data Structure Returned From A Public Method vulnerability in Apache Answer. This issue affects Apache Answer: through 1.4.2. If a user uses an externally referenced image, when a user accesses this image, the provider of the image may obtain private information about the ip address of that accessing user. Users are recommended to upgrade to version 1.4.5, which fixes the issue. In the new version, administrators can set whether external content can be displayed.

MEDIUMno explanation yet
1%
epss
The record
Technical detail
CWE ID
CWE-495
Abstraction
Variant
Structure
Simple
Status
Draft
References (1)