CWE-502: Deserialization of Untrusted Data
15 real-world CVEs classified as CWE-502: Deserialization of Untrusted Data. Each one is a short hands-on exercise in Hexret: find the vulnerable line, follow the exploit and learn the fix.
- CVE-2025-55182critical 10.02025
React2Shell unsafe Flight reference resolution
React Server Components followed attacker-selected object paths through inherited properties while decoding Flight payloads, enabling pre-authentication remote code execution.
- CVE-2023-46604critical 9.82023
Apache ActiveMQ OpenWire reflective class instantiation RCE
The OpenWire protocol marshaller rebuilds an exception by reflectively instantiating an attacker-named class with an attacker-supplied string, so a crafted frame can construct a gadget class and run code on the broker.
- CVE-2023-26360critical 9.82023
Adobe ColdFusion _cfclient deserialization to file load
A request flag turns on a typed-reconstruction path where a deserialized _metadata.classname names a file the server resolves and compiles with no confinement, giving unauthenticated file read and code execution.
- CVE-2023-0669high 7.22023
GoAnywhere MFT license-servlet deserialization RCE
A license-response servlet decodes and decrypts a request parameter, then deserializes the result with ObjectInputStream, so an attacker-supplied object graph executes code during readObject.
- CVE-2022-1471critical 9.82022
SnakeYAML unsafe deserialization
The default YAML parser instantiates whatever Java type a document names, so parsing untrusted YAML can construct dangerous objects.
- CVE-2020-1747critical 9.82020
PyYAML FullLoader python/object/new RCE
FullLoader was meant to be the safe loader, but its object constructor sets instance state from the document with no key check and then calls the instance's extend(), letting a crafted document plant a callable attribute and invoke it for code execution.
- CVE-2020-10189critical 9.82020
ManageEngine Desktop Central uploaded object reaches ObjectInputStream
An unauthenticated log-upload servlet let the udid parameter traverse into the web application's _chart file area and plant attacker-controlled bytes. The public Cewolf servlet then used its img parameter to open that predictable file and called ObjectInputStream.readObject without a class filter.
- CVE-2019-18935critical 9.82019
Telerik RadAsyncUpload attacker-selected type deserialization
A decrypted RadAsyncUpload request carried both object data and its .NET type name. The handler trusted that type when calling JavaScriptSerializer, so a requester who knew the upload encryption keys could replace the expected configuration type with a gadget type whose setters caused dangerous side effects.
- CVE-2019-6340high 8.12019
Drupal REST field unsafe deserialization
Non-form entity input could place a serialized object string in a field's options column, which LinkItem passed to unrestricted PHP unserialize.
- CVE-2017-7525critical 9.82018
jackson-databind polymorphic deserialization RCE (default typing)
With default typing enabled, a JSON document names the Java class to instantiate, so a crafted type id reaches a class whose deserialization performs a JNDI lookup and loads remote code.
- CVE-2017-10271high 7.52017
WebLogic wls-wsat XMLDecoder deserialization RCE
A SOAP endpoint decodes the request body with XMLDecoder behind a denylist that blocks only the object element, so a class-instantiating element slips through and runs arbitrary commands unauthenticated.
- CVE-2017-9805high 8.12017
Apache Struts REST plugin XStream deserialization RCE (S2-052)
The REST plugin deserializes an XML request body with a default XStream instance that has no type allowlist, so a crafted gadget-chain document instantiates arbitrary classes and runs commands on the server.
- CVE-2015-8562high 7.52015
Joomla! session-store PHP object injection RCE
Raw request headers are recorded verbatim into serialized session state, so a crafted header truncated at a bad UTF-8 byte survives into an unserialize on the next request as a live object.
- CVE-2015-4852critical 9.82015
WebLogic T3 Java deserialization (Commons Collections gadget)
A raw serialized Java object sent to the T3 listener is deserialized without any class filtering, so a Commons Collections transformer chain drives reflective method calls into Runtime.exec: unauthenticated remote code execution.
- CVE-2013-0156high 7.52013
Rails XML parameter parsing: YAML and Symbol type-cast RCE
An XML request parameter can declare its own type; two of the built-in casts deserialize YAML and intern symbols on attacker input, turning a request into arbitrary object instantiation and remote code execution.