appsec.fyi › Insecure Deserialization

Insecure Deserialization Resources

Page 3 of 3: resources 101–148 of 148, added Jun 2020 to Apr 2026.

The newest Insecure Deserialization resources are on the Insecure Deserialization page. For a reading order instead of a date order, see the Insecure Deserialization learning path.

Date AddedLinkExcerpt
2026-04-10 2026PayloadsAllTheThings - Ruby Deserialization Payloads intermediate 1 min readReference detailing Ruby deserialization vulnerabilities, including a script to generate gadget chains for Ruby 2.0-2.5. It highlights universal gadgets for Ruby versions up to 2.7.2 and 3.x, and cites specific research on RCE via YAML.load and Marshal, referencing works by Luke Jahnke, Etienne Stalmans, Colin McQueen, and PentesterLab.
2026-04-10 2026Ruby Vulnerabilities: Exploiting Open, Send, and Deserialization intermediate 19 min readRuby on Rails applications can be vulnerable to remote code execution through insecure use of the `open` function, flexible `send` and `public_send` methods, and vulnerable deserialization of Ruby objects. Exploiting the `open` function allows arbitrary OS command execution via user-supplied input. Insecure usage of `send` and `public_send` enables attackers to call sensitive methods like `eval` or `instance_eval` with crafted arguments. Additionally, outdated Ruby and RubyGems versions may be susceptible to deserialization gadget chains, allowing arbitrary code execution when processing marshalled data. → bishopfox.com
2026-04-10 2026Java Deserialization Gadget Chains Explained intermediate 13 min readJava deserialization exploitation is explained by dissecting the CommonsCollections1 gadget chain from Ysoserial. The process leverages `readObject()` methods, chained objects, and transformers to control program flow, ultimately achieving remote code execution. Understanding these gadget chains is critical for identifying and developing deserialization exploits in real-world testing.
2026-04-10 2026Deserialization Gadget Chains in Android: An In-Depth Study advanced 2 min readAnalysis of Java deserialization gadget chains in Android, using a novel detection tool to analyze the Android SDK and third-party libraries. The study found that the Android SDK contains trampoline gadgets similar to the Java Class Library and can trigger Java native serialization via the Parcel API. However, despite extensive testing, no security-critical gadget chains were discovered in the analyzed Android codebases, suggesting the problem is less prevalent than commonly assumed. → arxiv.org
2026-04-10 2026What Actually Is a Deserialization Gadget Chain? beginner 6 min readDeserialization gadget chains are sequences of method calls originating from a source, like `readObject`, and leading to a sink, enabling dangerous actions such as arbitrary command execution. Attackers can leverage these chains, often targeting common libraries, to exploit insecure deserialization vulnerabilities, as demonstrated by tools like `ysoserial`. Understanding gadget chains involves recognizing "magic methods" that execute automatically during deserialization, allowing attackers to craft malicious objects that, when processed, trigger unintended command execution.
2026-04-10 2026ysoserial: Java Deserialization Payload Generator intermediate 2 min readTool for generating Java deserialization payloads, ysoserial leverages gadget chains from libraries like Apache Commons Collections, Spring Beans/Core, and Groovy to exploit applications performing unsafe deserialization. It allows users to specify a command and a gadget chain, serializing the exploit for execution when deserialized by a vulnerable application. The tool supports various payload types, including CommonsCollections1, CommonsCollections4, Groovy1, and Jdk7u21, enabling academic research and defensive technique development for Java deserialization vulnerabilities.
2026-04-10 2026ysoserial.net: Deserialization Payload Generator for .NET intermediate 18 min readTool for generating .NET deserialization payloads, inspired by ysoserial. ysoserial.net provides gadget chains from common .NET libraries to exploit unsafe deserialization, wrapping user-specified commands within these chains. It supports various gadget types like ActivitySurrogateDisableTypeCheck, AxHostState, and DataSet, and works with multiple formatters including BinaryFormatter, Json.NET, and SoapFormatter, enabling remote DLL loading and arbitrary code execution when vulnerable applications deserialize malicious data.
2026-04-10 2026The Anatomy of Deserialization Attacks beginner 5 min readReference detailing deserialization attack techniques across PHP, Python (using pickle), Node.js, Java, and .NET. It covers how vulnerabilities arise from processing untrusted serialized data, enabling attacks like Remote Code Execution (RCE), SQL injection, and path traversal through PHP magic methods (__wakeup(), __destruct()), Python's pickle module, and Java's ObjectInputStream. Detection tools like Ysoserial, Ysoserial.net, and various Burp plugins are mentioned, alongside remediation strategies focusing on using alternative data formats like JSON/XML and deserializing only signed data. → cobalt.io
2026-04-10 2026Marshal Madness: A Brief History of Ruby Deserialization Exploits intermediate 8 min readMarshal deserialization vulnerabilities in Ruby have evolved significantly since 2013, showcasing a decade-long cycle of patches and bypasses rather than systemic fixes. This history highlights the persistence of such vulnerabilities, demonstrating the futility of addressing symptoms and underscoring the need for fundamental changes in the Ruby ecosystem beyond the patch-and-hope approach. → blog.trailofbits.com
2026-04-10 2026Deserialization Attacks: How Exploiting Data Formats Can Break Security beginner 13 min readDeserialization attacks exploit the process of converting data formats into usable objects, creating critical weaknesses in applications. Attackers can manipulate serialized data, often found in cookies or HTTP parameters, to inject malicious code, leading to remote code execution and privilege escalation. This vulnerability stems not from application logic flaws, but from improper handling of untrusted or user-controlled serialized input, turning seemingly harmless data into a pathway for compromise.
2026-04-10 2026DELMIA Apriso Insecure Deserialization Exploited in the Wild (CVE-2025-5086) news 2 min readCVE-2025-5086 in DELMIA Apriso allows remote attackers to execute arbitrary code by injecting a malformed serialized payload. This critical insecure deserialization vulnerability, affecting releases from 2020 through 2025, is actively exploited in the wild and has been added to CISA's Known Exploited Vulnerabilities catalog. The flaw resides within the FlexNetOperationsService.svc Windows Communication Foundation service, which uses NetDataContractSerializer, enabling attackers to control deserialized .NET types via public, unauthenticated endpoints.
2026-04-10 2026PayloadsAllTheThings - PHP Deserialization Payloads intermediate 6 min readLibrary detailing PHP Object Injection, a vulnerability allowing code execution, SQL injection, and path traversal via improper sanitization of input to `unserialize()`. It covers exploiting magic methods like `__wakeup()` and `__destruct()`, using the `phar://` wrapper, and provides payloads for common frameworks, including examples generated by the `phpggc` tool. The resource also outlines how to identify vulnerable code by searching for `unserialize()` calls and relevant magic methods.
2026-04-10 2026Exploiting PHP Deserialization with POP Chains intermediateExploiting PHP Deserialization with POP Chains
2026-04-10 2026What is PHP Object Injection? An In-Depth Guide beginner 9 min readGuide on PHP object injection detailing its mechanics, risks, and prevention. It explains how the `unserialize()` function, when used with user-controlled input and existing class definitions, can lead to Remote Code Execution (RCE), data theft, Denial of Service (DoS) attacks, and overall application compromise. The guide includes examples of simple injection and the specific WordPress vulnerability CVE-2022-21663, emphasizing secure coding practices and input validation as key mitigation strategies.
2026-04-10 2026PHP Object Injection Research advanced 4 min readPHP Object Injection, a critical vulnerability, occurs when user-controlled data is passed to PHP's `unserialize()` function, enabling attackers to instantiate arbitrary objects and execute malicious logic via magic methods. Exploitation often involves Property-Oriented Programming (POP) chains to achieve file writes, code execution, or SQL injection. The safest mitigation is to avoid passing user input to `unserialize()`, opting for formats like JSON, or implementing strict class allowlisting. SonarQube detects unsafe `unserialize()` calls with user-controlled input as a high-severity vulnerability.
2026-04-10 2026.NET Deserialization Cheat Sheet intermediate 3 min readCheatsheet detailing .NET deserialization vulnerabilities, covering tools like `ysoserial.net` and Mandiant's `heyserial`. It highlights exploitable CVEs such as CVE-2021-26857 in Microsoft Exchange Server, and issues related to `BinaryFormatter`, `ViewState`, Managed DCOM, `LosFormatter`, `NetDataContractSerializer`, and `ObjectStateFormatter`. The resource also lists specific .NET types and methods prone to unsafe deserialization.
2026-04-10 2026BinaryFormatter Deserialization Security Guide for .NET beginner 4 min readGuide on .NET BinaryFormatter security, detailing its inherent dangers with deserialization vulnerabilities. It explains how attackers can exploit the `BinaryFormatter.Deserialize` method for denial of service, information disclosure, or remote code execution, and emphasizes that it cannot be made secure. The guide strongly advises against its use, even with trusted data, and recommends safer alternatives provided by .NET, highlighting scenarios where seemingly trusted data can cross trust boundaries and lead to compromise.
2026-04-10 2026.NET JSON.NET Deserialization RCE intermediate 1 min read.NET JSON.NET Deserialization RCE occurs when the Newtonsoft.Json library's `TypeNameHandling` is insecurely configured, allowing attackers to embed type information in JSON data and trigger remote code execution by instantiating dangerous .NET classes. Remediation involves setting `TypeNameHandling` to `None` or implementing a strict `SerializationBinder` to whitelist allowed types, alongside input validation and considering `System.Text.Json` for new projects. → invicti.com
2026-04-10 2026Deserialization Bugs in the Wild intermediate 7 min readDeserialization vulnerabilities often lead to critical outcomes like RCE and are difficult to defend against due to their language and library-specific nature. Analysis of publicly disclosed reports reveals that source code review is the most reliable method for finding these bugs, which commonly occur in features handling user-supplied serialized objects, particularly within PHP's `unserialize()`, Java, Ruby's `Marshall.load()`, and Python's `pickle.loads()`.
2026-04-10 2026Exposing 4 Critical Vulnerabilities in Python Picklescan intermediate 5 min read PythonSonatype discovered four critical vulnerabilities in the Python `picklescan` tool, including CVE-2025-1716, CVE-2025-1889, CVE-2025-1944, and CVE-2025-1945. These flaws allow attackers to bypass malware scanning and execute arbitrary code by exploiting issues with static analysis, file extension reliance, ZIP filename tampering, and modified ZIP file flag bits, potentially impacting AI/ML model security on platforms like Hugging Face. → sonatype.com
2026-04-10 2026Breaking Pickle: RCE Through Python Deserialization intermediate 3 min readPython deserialization vulnerabilities, specifically with the `pickle` module, allow for Remote Code Execution (RCE) when untrusted user input is processed by `pickle.loads()`. This can be exploited to execute arbitrary system commands, leading to actions like initiating a reverse shell and obtaining sensitive data. Developers should avoid using `pickle` with user-controlled data, opting instead for safer formats like JSON or MessagePack and implementing proper input validation.
2026-04-10 2026Pickle Deserialization in ML Pipelines: The RCE That Won't Go Away intermediate 12 min readPickle deserialization remains a critical RCE vulnerability in ML pipelines, persisting despite mitigations due to developers' incomplete threat models for model file loading. This Python serialization method allows arbitrary code execution during deserialization, posing risks even in production environments with security teams and passing PR reviews. Recent CVEs in tools like picklescan and frameworks such as vLLM and LightLLM, coupled with academic research identifying numerous missed pickle-based loading paths, highlight the ongoing prevalence and evasion tactics of this threat. The vulnerability is exacerbated by supply chain attacks, typosquatting, and malicious fine-tuned models, with the core issue residing in the trust placed in deserializing internet-sourced files without proper verification.
2026-04-10 2026Insecure Deserialization Tutorial and Examples beginner 9 min readTutorial on insecure deserialization, demonstrating attacks on a video game API by manipulating serialized Java objects. It covers understanding serialization, using tools like `jdeserialize` and `hexdump` to modify payloads, achieving state manipulation by changing item quantities, and ultimately performing remote code execution by leveraging gadget classes within Java frameworks. The tutorial emphasizes that relying on obscurity for security is ineffective and stresses the importance of robust input validation.
2026-04-10 2026An In-depth Study of Java Deserialization RCE Exploits advancedAn In-depth Study of Java Deserialization RCE Exploits → dl.acm.org
2026-04-10 2026OWASP Deserialization Cheat Sheet beginner 11 min readReference for safely deserializing untrusted data, this OWASP cheat sheet details vulnerabilities and mitigation techniques across PHP, Python, and Java. It covers identifying insecure usage of functions like `unserialize()` and `pickle.loads()`, and advises on hardening Java's `ObjectInputStream` through subclassing or agents, mentioning libraries like SerialKiller and NibbleSec. The guide emphasizes using safe interchange formats like JSON and protecting sensitive data by declaring fields as `transient`. → cheatsheetseries.owasp.org
2026-04-10 2026Deserialization Vulnerabilities in Java beginner 4 min readTutorial detailing Java deserialization vulnerabilities, explaining attack vectors involving reflection and gadget chains, exemplified by `ysoserial`. It covers implications like remote command execution and data theft, and offers best practices including keeping libraries updated, verifying input sources, and consulting OWASP cheat sheets for prevention.
2026-04-10 2026Java Deserialization Cheat Sheet intermediate 10 min readCheatsheet detailing Java deserialization vulnerabilities across numerous JVM serialization libraries including Java Native, XMLEncoder, XStream, Kryo, Hessian/Burlap, Castor, json-io, Jackson, Fastjson, Genson, Flexjson, Jodd, Red5 IO AMF, Apache Flex BlazeDS, Flamingo AMF, GraniteDS, WebORB for Java, SnakeYAML, jYAML, and YamlBeans. It covers exploitation techniques, specific CVEs such as CVE-2015-4852, CVE-2017-3248, and CVE-2018-2628, and mentions tools like ysoserial payloads and Burp Suite integration.
2026-04-10 2026Insecure Deserialization in Web Applications beginner 4 min readInsecure deserialization vulnerabilities allow attackers to execute malicious code by tricking applications into loading untrusted serialized data, leading to high-impact attacks such as remote code execution and denial of service. This issue, listed as #8 on the OWASP Top 10 for 2017, affects various programming languages and serialization formats including Java, PHP, Python's pickle module, JSON, XML, and YAML, especially when handling API data. Mitigation involves careful input validation, data verification, and employing dynamic testing and penetration testing tools. → invicti.com
2026-04-10 2026CVE-2026-25769: Wazuh Critical RCE via Unsafe Deserialization news 9 min readCVE-2026-25769 in Wazuh is a critical remote code execution vulnerability affecting versions 4.0.0 through 4.14.2. An attacker controlling a worker node can exploit unsafe JSON deserialization in the cluster communication mechanism to execute arbitrary code on the master node. This is achieved by crafting a malicious payload that leverages a custom `object_hook` to import user-controlled Python modules and call arbitrary functions, leading to full cluster compromise. → resecurity.com
2026-04-06 2026Remote Code Execution (RCE) Prevention - SecPortal beginnerRemote Code Execution (RCE) Prevention - SecPortal
2026-04-06 2026CVE-2025-12305: Shiyi-blog RCE via Deserialization news 3 min readCVE-2025-12305 in quequnlong shiyi-blog (versions up to 1.2.1) allows remote arbitrary code execution due to an insecure deserialization vulnerability in the Job Handler component. Attackers can exploit this by sending malicious serialized Java objects to the SysJobController, bypassing input validation and triggering code execution. This critical flaw, a combination of CWE-502 and CWE-20, necessitates immediate mitigation by patching, restricting network access, or implementing serialization filters. → sentinelone.com
2026-04-06 2026CVE-2025-34153: Hyland OnBase RCE via Deserialization news 3 min readCVE-2025-34153 is a critical unauthenticated remote code execution vulnerability affecting Hyland OnBase. The flaw lies in the Hyland Timer Service's use of .NET BinaryFormatter to deserialize untrusted input via its .NET Remoting TCP channel on port 6031. This insecure deserialization allows attackers to execute arbitrary code with SYSTEM-level privileges, impacting Hyland OnBase versions prior to 17.0.2.87. Mitigation involves upgrading to a patched version or restricting network access to port 6031. → sentinelone.com
2026-04-06 2026CVE-2025-42928: SAP jConnect RCE via Deserialization news 4 min readCVE-2025-42928 is a critical insecure deserialization vulnerability in SAP jConnect. Under specific conditions, authenticated high-privileged users can exploit this flaw by submitting specially crafted serialized Java objects to achieve remote code execution. This can lead to full system compromise of SAP environments due to improper handling of untrusted data, allowing attackers to instantiate malicious objects and execute arbitrary code. → sentinelone.com
2026-04-06 2026Insecure Deserialization Guide - SecPortal beginnerInsecure Deserialization Guide - SecPortal
2026-04-03 2026Unsafe Deserialization in Ruby | SecureFlag intermediateUnsafe Deserialization in Ruby | SecureFlag
2026-04-03 2026Analyzing Prerequisites of Known Deserialization Vulnerabilities on Java Applications advancedAnalyzing Prerequisites of Known Deserialization Vulnerabilities on Java Applications → dl.acm.org
2026-04-03 2026Insecure Deserialization: The Vulnerability That Gives Attackers RCE beginner 4 min readInsecure deserialization flaws, a recurring OWASP top threat, enable Remote Code Execution by allowing attackers to control serialized byte streams. This vulnerability arises when applications deserialize untrusted input, triggering unintended code execution through gadget chains in libraries like Java's Apache Commons Collections or Python's pickle. Exploitation can occur in various contexts, including web sessions, RPC calls, and ML model serving, with tools like ysoserial aiding payload generation. Safe deserialization practices involve using formats like JSON, implementing data signing with HMAC, configuring Java serialization filters, and carefully auditing all deserialization points.
2026-04-03 2026Lab: Exploiting Ruby Deserialization Using a Documented Gadget Chain | PortSwigger intermediateExploiting Ruby deserialization using a documented gadget chain involves leveraging a documented exploit for remote code execution within Ruby on Rails. This lab utilizes a serialization-based session mechanism to create a malicious serialized object containing a remote code execution payload, which is then used to delete the morale.txt file from a user's home directory. → portswigger.net
2026-04-03 2026Ruby 2.x Universal RCE Deserialization Gadget Chain | elttam advanced 11 min readRuby 2.x Universal RCE Deserialization Gadget Chain details exploitation of arbitrary deserialization in Ruby, releasing the first public universal gadget chain for Ruby 2.x. This library allows arbitrary command execution by leveraging code reuse attacks where available code snippets (gadgets) are linked together into a chain after deserialization of untrusted data. The research explores the discovery and exploitation of these gadget chains, focusing on standard library components to remove external dependencies. → elttam.com
2026-04-03 2026Insecure Deserialization Explained with Examples beginner 11 min readInsecure deserialization vulnerabilities are detailed with examples in PHP, Python, and Java, illustrating how unverified serialized data can enable arbitrary code execution. The explanation covers the definition, impact, real-world CVEs, exploitation through white-box testing on OWASP WebGoat, and mitigation strategies.
2026-04-03 2026Now You Serial, Now You Don't — Systematically Hunting for Deserialization Exploits | Google Cloud advanced 16 min readHunting deserialization exploits involves systematically generating and validating rules using custom tools like HeySerial.py and CheckYoself.py. These tools aid in identifying exploitation attempts for various vulnerabilities, including those affecting Exchange, Zoho ManageEngine, Jira, Telerik, and Jenkins, by analyzing serialized objects and gadget chains used by attackers. → cloud.google.com
2026-04-03 2026PayloadsAllTheThings - Java Deserialization Payloads intermediate 5 min readLibrary cataloging Java deserialization payloads and exploitation techniques. It details common vulnerabilities such as those found in Jackson (CVE-2017-7525, CVE-2017-17485, CVE-2019-12384, CVE-2020-36180, CVE-2020-9548) and SnakeYAML, alongside JSF ViewState exploits. The resource lists numerous tools like ysoserial, marshalsec, and Burp extensions for generating and detecting these insecure deserialization issues.
2026-04-03 2026Insecure Deserialization | OWASP beginner 3 min readReference on Insecure Deserialization, a vulnerability that allows attackers to execute code or manipulate objects by abusing an application's deserialization process with untrusted data. This vulnerability can lead to remote code execution, denial-of-service, and privilege escalation. Mitigations include avoiding deserialization of untrusted data, implementing integrity checks, enforcing strict type constraints, isolating deserialization code, logging exceptions, monitoring the process, and using alternative formats like JSON. → owasp.org
2026-04-03 2026Exploiting Insecure Deserialization Vulnerabilities | PortSwigger intermediate 17 min readExploiting insecure deserialization vulnerabilities, detailed in this guide, proves simpler than often assumed, even during black-box testing. Techniques cover identifying serialized data in PHP and Java, modifying object attributes to alter program state, and leveraging data type differences for attacks like privilege escalation and authentication bypass. Burp Suite Professional users can leverage Burp Scanner for automated flagging of HTTP messages containing serialized objects. → portswigger.net
2026-01-16 2026Introduction to Deserialization Attacks beginner 9 min readWalkthrough of deserialization attacks, covering serialization basics in Python with `pickle` and PHP with `serialize`. It details how untrusted input during deserialization can lead to critical vulnerabilities like remote code execution (RCE) by loading unexpected classes or executing dangerous code paths. The entry includes a Python Flask application demonstration showcasing the process and the associated risks.
2023-06-06 2023Reversing Pickles with r2pickledec intermediate 10 min read Pythonr2pickledec is a Radare2 plugin that decompiles Python pickle files up to protocol 5, enabling analysis of serialized Python objects and potential security vulnerabilities. It works by leveraging Radare2's disassembler and its own pickle-specific architecture to translate pickle instructions into a more readable format, aiding in the reverse engineering of potentially malicious or data-laden pickle payloads. → blog.doyensec.com
2021-06-11 2021Insecure DeserializationWeb ChallengesPart 1 intermediateThis content, "Insecure Deserialization Web Challenges Part 1," likely presents a set of practical exercises focused on identifying and exploiting vulnerabilities related to insecure deserialization in web applications. Participants would engage with pre-configured environments or code snippets to understand the risks associated with improperly handling serialized data, potentially leading to remote code execution or other security compromises. The challenges are designed to build hands-on skills in detecting and mitigating such vulnerabilities.
2020-06-29 2020Insecure deserialization | Web Security Academy beginner 5 min readReference on insecure deserialization detailing its nature, common scenarios, and exploitation techniques across PHP, Ruby, and Java. It covers how user-controllable data manipulation during deserialization can lead to severe attacks, including object injection, privilege escalation, and remote code execution, while emphasizing the difficulty of secure deserialization and advocating for avoidance or strict pre-deserialization integrity checks. → portswigger.net