IT lexicon › Security › Deserialization attack

Deserialization attack

Security På svenska → Updated: 2026-05-23

When reading "data" from an untrusted source executes arbitrary code — Java serialization, Python pickle, PHP unserialize.

Java and PHP are notorious. Pickle: "never unpickle data received from an untrusted source" (Python docs). Solution: JSON or signed formats. safetensors for ML models solves the same problem.

← Back to the lexicon