Skip to main content

About CWE-502

Attackers can modify objects or data assumed to be protected, invoke unexpected functions, or force unbounded CPU use. Outcomes vary with the classes involved, and gadget chains can lead to unauthorized actions.

MITRE name
Deserialization of Untrusted Data
Abstraction
Base: abstract, but detailed enough to infer detection and prevention methods
Status
Draft

Also Known As

  • Marshaling/Marshalling, Unmarshaling/Unmarshalling
  • Pickling, Unpickling
  • PHP Object Injection

Mitigations

  • Sign or seal serialized data, for example with an HMAC, so tampering is detected before deserialization.
  • Populate a new object from validated values rather than deserializing directly into live objects.
  • Mark sensitive fields as transient so they are not restored during deserialization.
  • Avoid making unnecessary types and gadgets available, and add only acceptable classes to an allowlist.
  • Use an application firewall as a temporary measure when the code cannot be fixed, noting that it might not cover all input vectors.

Detection
Automated static analysis (SAST) can find some instances and is rated highly effective by MITRE.

CWE-502 in the KEV Catalog

as of 2026-11-10
All KEV statistics→
  • 75 CISA KEV entries name Deserialization of Untrusted Data (CWE-502) in their CVE record, tied for 6th among the 193 weaknesses named in the catalog.
  • CISA added 11 CWE-502 entries to the KEV catalog in 2024, 19 in 2025, and 13 so far in 2026.
  • Microsoft has the most CWE-502 entries in the CISA KEV catalog (14), followed by Adobe (5) and Oracle (5).
  • For CWE-502 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 64 days, compared with 16 days for all entries added in that period.
  • CISA marks 40% of CWE-502 KEV entries (30 of 75) as known to be used in ransomware campaigns, compared with 20% of all KEV entries.
  • CISA's SSVC enrichment rates 61% of CWE-502 KEV entries with SSVC data (46 of 75) as automatable, compared with 41% across the catalog.

Related Attack Patterns

1 CAPEC patterns
CAPEC-586Object InjectionMeta · Severity High · Likelihood Medium

CWE-502 Vulnerabilities

84 CVEs
CVECVSS
CVE-2021-23758KEV
Deserialization of Untrusted Data
8.1
CVE-2026-63077KEV
JetBrains TeamCity Deserialization of Untrusted Data Vulnerability
9.8
CVE-2026-50522KEV
Microsoft SharePoint Remote Code Execution Vulnerability
9.8
CVE-2026-58644KEV
Microsoft SharePoint Remote Code Execution Vulnerability
9.8
CVE-2026-45659KEV
Microsoft SharePoint Remote Code Execution Vulnerability
8.8
CVE-2026-12569KEV
Remote Code Execution (RCE) vulnerability in Windchill PDMlink
9.3
CVE-2026-45247KEV
Mirasvit Cache Warmer for Magento < 1.11.12 PHP Object Injection
9.8
CVE-2023-21529KEV
Microsoft Exchange Server Remote Code Execution Vulnerability
8.8
CVE-2026-20131KEV
Cisco Secure Firewall Management Center Software Remote Code Execution Vulnerability
10.0
CVE-2026-20963KEV
Microsoft SharePoint Remote Code Execution Vulnerability
9.8
CVE-2025-26399KEV
SolarWinds Web Help Desk Deserialization of Untrusted Data Privilege Escalation Vulnerability
9.8
CVE-2025-49113KEV
RoundCube Webmail Deserialization of Untrusted Data Vulnerability
9.9
CVE-2025-40551KEV
SolarWinds Web Help Desk Deserialization of Untrusted Data Remote Code Execution Vulnerability
9.8
CVE-2025-55182KEV
Meta React Server Components Remote Code Execution Vulnerability
10.0
CVE-2025-59287KEV
Windows Server Update Service (WSUS) Remote Code Execution Vulnerability
9.8
CVE-2017-1000353KEV
Jenkins Remote Code Execution Vulnerability
9.8
CVE-2025-10035KEV
Deserialization Vulnerability in GoAnywhere MFT's License Servlet
10.0
CVE-2025-5086KEV
Deserialization of Untrusted Data vulnerability affecting DELMIA Apriso from Release 2020 through Release 2025
9.0
CVE-2025-53690KEV
Sitecore Products ViewState Deserialization Vulnerability
9.0
CVE-2024-8069KEV
Limited remote code execution with privilege of a NetworkService Account access
5.1
CVE-2025-8875KEV
Insecure Deserialization Vulnerability
9.4
CVE-2025-53770KEV
Microsoft SharePoint Server Remote Code Execution Vulnerability
9.8
CVE-2025-24016KEV
Remote code execution in Wazuh server
9.9
CVE-2025-3935KEV
ScreenConnect Exposure to ASP.NET ViewState Code Injection
8.1
CVE-2025-42999KEV
Insecure Deserialization in SAP NetWeaver (Visual Composer development server)
9.1
CVE-2025-24813KEV
Apache Tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUT
10.0
CVE-2019-9874KEV
Sitecore CMS and Experience Platform (XP) Deserialization Vulnerability
9.8
CVE-2019-9875KEV
Sitecore CMS and Experience Platform (XP) Deserialization Vulnerability
8.8
CVE-2017-3066KEV
Adobe ColdFusion Deserialization Vulnerability
9.8
CVE-2024-20953KEV
Oracle Agile Product Lifecycle Management (PLM) Deserialization Vulnerability
8.8
CVE-2025-0994KEV
Trimble Cityworks Deserialization Vulnerability
8.6
CVE-2025-23006KEV
SonicWall SMA1000 Appliances Deserialization Vulnerability
9.8
CVE-2024-38094KEV
Microsoft SharePoint Remote Code Execution Vulnerability
7.2
CVE-2024-40711KEV
Veeam Backup and Replication Deserialization Vulnerability
9.8
CVE-2019-0344KEV
SAP Commerce Cloud Deserialization of Untrusted Data Vulnerability
9.8
CVE-2020-0618KEV
Microsoft SQL Server Reporting Services Remote Code Execution Vulnerability
9.8
CVE-2022-21445KEV
Oracle ADF Faces Deserialization of Untrusted Data Vulnerability
9.8
CVE-2024-28986KEV
SolarWinds Web Help Desk Java Deserialization Remote Code Execution Vulnerability
9.8
CVE-2018-0824KEV
Microsoft COM for Windows Deserialization of Untrusted Data Vulnerability
7.5
CVE-2023-43208KEV
NextGen Healthcare Mirth Connect Deserialization of Untrusted Data Vulnerability
9.8
CVE-2018-15133KEV
Laravel Deserialization of Untrusted Data Vulnerability
8.1
CVE-2023-29300KEV
Adobe ColdFusion Deserialization of Untrusted Data Arbitrary code execution
9.8
CVE-2023-38203KEV
Analysis CVE-2023-29300 Bypass: Adobe ColdFusion Pre-Auth RCE
9.8
CVE-2023-46604KEV
Apache ActiveMQ, Apache ActiveMQ Legacy OpenWire Module: Unbounded deserialization causes ActiveMQ to be vulnerable to a remote code execution (RCE) attack
10.0
CVE-2023-40044KEV
WS_FTP Server Ad Hoc Transfer Module .NET Deserialization Vulnerability
10.0
CVE-2023-26359KEV
Adobe ColdFusion Deserialization of Untrusted Data Arbitrary code execution
9.8
CVE-2022-31199KEV
Netwrix Auditor Insecure Object Deserialization Vulnerability
9.8
CVE-2021-39144KEV
XStream is vulnerable to a Remote Command Execution attack
8.5
CVE-2020-5741KEV
Plex Media Server Remote Code Execution Vulnerability
7.2
CVE-2022-47986KEV
IBM Aspera Faspex code execution
9.8
CVE-2023-0669KEV
Fortra GoAnywhere MFT License Response Servlet Command Injection
7.2
CVE-2022-41082KEV
Microsoft Exchange Server Remote Code Execution Vulnerability
8.0
CVE-2022-35405KEV
Zoho ManageEngine Multiple Products Remote Code Execution Vulnerability
9.8
CVE-2018-2628KEV
Oracle WebLogic Server Unspecified Vulnerability
9.8
CVE-2021-31010KEV
Apple iOS, macOS, watchOS Sandbox Bypass Vulnerability
7.5
CVE-2019-15271KEV
Cisco Small Business RV016, RV042, RV042G, and RV082 Routers Arbitrary Command Execution Vulnerability
8.8
CVE-2021-27852KEV
Checkbox Survey Deserialization of Untrusted Data Vulnerability
9.8
CVE-2021-42237KEV
Sitecore XP Remote Command Execution Vulnerability
9.8
CVE-2019-10068KEV
Kentico Xperience Deserialization of Untrusted Data Vulnerability
9.8
CVE-2019-6340KEV
Drupal core - Highly critical - Remote Code Execution
8.1
CVE-2018-1000861KEV
Jenkins Stapler Web Framework Deserialization of Untrusted Data Vulnerability
9.8
CVE-2015-7450KEV
IBM WebSphere Application Server and Server Hypervisor Edition Code Injection.
9.8
CVE-2021-44228KEV
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2017-12149KEV
Red Hat JBoss Application Server Remote Code Execution Vulnerability
9.8
CVE-2021-42321KEV
Microsoft Exchange Server Remote Code Execution Vulnerability
8.8
CVE-2021-35464KEV
ForgeRock Access Management (AM) Core Server Remote Code Execution Vulnerability
9.8
CVE-2020-10189KEV
Zoho ManageEngine Desktop Central File Upload Vulnerability
9.8
CVE-2020-7961KEV
Liferay Portal Deserialization of Untrusted Data Vulnerability
9.8
CVE-2019-18935KEV
Progress Telerik UI for ASP.NET AJAX Deserialization of Untrusted Data Vulnerability
9.8
CVE-2017-9805KEV
Apache Struts Deserialization of Untrusted Data Vulnerability
8.1
CVE-2020-2555KEV
Oracle Multiple Products Remote Code Execution Vulnerability
9.8
CVE-2021-26857KEV
Microsoft Exchange Server Remote Code Execution Vulnerability
7.8
CVE-2015-4852KEV
Oracle WebLogic Server Deserialization of Untrusted Data Vulnerability
9.8
CVE-2018-4939KEV
Adobe ColdFusion Deserialization of Untrusted Data Vulnerability
9.8
CVE-2020-17144KEV
Microsoft Exchange Remote Code Execution Vulnerability
8.4
CVE-2026-534358.8
CVE-2026-45484
Microsoft SharePoint Elevation of Privilege Vulnerability
8.8
CVE-2026-33112
Microsoft SharePoint Server Remote Code Execution Vulnerability
8.8
CVE-2026-20251
Remote Code Execution through Deserialization of Untrusted Data in Splunk Secure Gateway
8.8
CVE-2026-25874
LeRobot Unsafe Deserialization Remote Code Execution via gRPC
9.3
CVE-2026-43825
Apache OpenNLP :: Core :: ML :: LibSVM: Unsafe Java Deserialization in SvmDoccatModel
7.3
CVE-2026-33439
Pre-Authentication Remote Code Execution via `jato.clientSession` Deserialization in OpenAM
9.3
CVE-2026-25769
Wazuh Cluster vulnerable to Remote Code Execution via Insecure Deserialization
9.1
CVE-2026-27971
Qwik affected by unauthenticated RCE via server$ Deserialization
9.2

Frequently Asked Questions

What is CWE-502?→

CWE-502 is the weakness of deserializing untrusted data without verifying that the result is valid. It is a Base-level entry in MITRE's catalog.

Is a class allowlist enough to stop deserialization attacks?→

MITRE says it helps but is not sufficient alone, because new gadgets keep being discovered. Signing serialized data and populating new objects from validated values are also recommended.

How many exploited vulnerabilities are classified as CWE-502?→

This database lists 84 CVE records mapped to CWE-502 by their CVE Numbering Authority. 75 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 30 to known ransomware campaigns. Examples include CVE-2021-23758, CVE-2026-63077, CVE-2026-50522.

How quickly are CWE-502 vulnerabilities added to the KEV catalog?→

For CWE-502 entries added to the CISA KEV catalog since 2023, the median time from CVE publication to KEV listing is 64 days, compared with 16 days for all entries added in that period. These figures are as of November 10, 2026.

Weakness definitions summarized from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.