CWE-499: Serializable Class Containing Sensitive Data
The code contains a class with sensitive data, but the class does not explicitly deny serialization.
Last updated
Overview
CWE-499 (Serializable Class Containing Sensitive Data) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
1 recorded CVE is caused by CWE-499 (Serializable Class Containing Sensitive Data).
Common consequences
What can happen when CWE-499 is exploited.
Read Application Data
Affects: Confidentiality
Classes that do not explicitly deny serialization can be serialized by any other class, which can then in turn use the data stored inside it. The data can be accessed by serializing the class through another class. Alternately, an attacker can write out the class to a byte stream, then extract the important data from it.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.