Software Securityhome
Fix a findingSearch
Glossary

Insecure deserialization

Rebuilding objects from attacker-controlled bytes with a format that can create arbitrary types or run code, such as Python pickle or Java serialization (CWE-502). Use data-only formats or an allowlist of types.

Also called
deserialization of untrusted data · unsafe deserialization
Fix it in your stack
Insecure deserialization fix cards (7 stacks) · CWE-502 page
Defined in
MITRE CWE-502

Covered in

Practice: SQL injection lab: Separate SQL structure from data with sqlite3 · OS command injection lab: Run git without a shell · SSTI lab: Render a welcome banner without template injection · XXE lab: Parse an uploaded invoice without resolving external entities

Find your next answer

Type to search. Search runs in your browser.

Searches run in your browser, but the host can infer them from the index files they load. The address shows your search so you can bookmark or share it.