logo

Serialization and deserialization in Java

ID: ad5f8f86-412e-5091-a9ed-b575122c2900

STIX ID: report--ad5f8f86-412e-5091-a9ed-b575122c2900

Feed Name: Snyk Blog

Threat Score
25/100

Date Published: 2020-12-18

Date Updated: 2026-09-16

...
...

This blog post explains Java serialization and deserialization weaknesses, how gadget classes and gadget chains can enable arbitrary code execution (with Log4Shell cited as an illustrative example), and recommends mitigations such as avoiding Java serialization, using validated ObjectInputStream or Java serialization filters (JEP 290/415), scanning dependencies, and testing with tools like ysoserial.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.