CWE-502 - Deserialization of Untrusted Data
- 摘要:Base
- 结构:Simple
- 状态:Draft
- 发布日期:2006-07-19
- 更新日期:2026-04-30
名称
Deserialization of Untrusted Data
描述
The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
常见后果
范围:Integrity
影响:Modify Application Data, Unexpected State
注释:Attackers can modify unexpected objects or data that was assumed to be safe from modification. Deserialized data or code could be modified without using the provided accessor functions, or unexpected functions could be invoked.
范围:Availability
影响:DoS: Resource Consumption (CPU)
注释:If a function is making an assumption on when to terminate, based on a sentry in a string, it could easily never terminate.
范围:Other
影响:Varies by Context
注释:The consequences can vary widely, because it depends on which objects or methods are being deserialized, and how they are used. Making an assumption that the code in the deserialized object is valid is dangerous and can enable exploitation. One example is attackers using gadget chains to perform unauthorized actions, such as generating a shell.