Insecure Deserialization
A flaw where an application rebuilds objects from untrusted data, letting an attacker alter program behavior.
What it is
Deserialization is the process of turning stored or transmitted data back into live objects in a program. When an application does this with untrusted data and without safeguards, an attacker can craft input that manipulates the application's logic or, in the worst case, runs code. The flaw lies in trusting data that can be tampered with.
Why it matters
Depending on the technology, insecure deserialization can lead to remote code execution, one of the most severe outcomes possible.
How to fix it
Avoid deserializing untrusted data; if unavoidable, use safe data formats, apply integrity checks, and restrict which object types may be created.