BaseDraftTop 25 #16
CWE-502Deserialization of Untrusted Data
Category: injection
Description
The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
Common consequences· 3
- Integrity — Modify Application Data, Unexpected StateAttackers can modify unexpected objects or data that was assumed to be safe from modification. Deserialized data or code could be modified without using the provided accessor functions, or unexpected functions could be invoked.
- Availability — DoS: Resource Consumption (CPU)If a function is making an assumption on when to terminate, based on a sentry in a string, it could easily never terminate.
- Other — Varies by ContextThe consequences can vary widely, because it depends on which objects or methods are being deserialized, and how they are used. Making an assumption that the code in the deserialized object is valid is dangerous and can enable exploitation. One example is attackers using gadget chains to perform unauthorized actions, such as generating a shell.
Potential mitigations· 5
- [Architecture and Design, Implementation]If available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
- [Implementation]When deserializing data, populate a new object rather than just deserializing. The result is that the data flows through safe input validation and that the functions are safe.
- [Implementation]Explicitly define a final object() to prevent deserialization.
- [Architecture and Design, Implementation]
- [Implementation]Avoid having unnecessary types or gadgets (a sequence of instances and method invocations that can self-execute during the deserialization process, often found in libraries) available that can be leveraged for malicious ends. This limits the potential for unintended or unauthorized types and gadgets to be leveraged by the attacker. Add only acceptable classes to an allowlist. Note: new gadgets are constantly being discovered, so this alone is not a sufficient mitigation.
Related CAPEC attack patterns· 1
References
Exploits (incoming)1
| Type | Target | Confidence | Tier |
|---|---|---|---|
| AttackPattern | Object Injectioncapec-586 | 100% | live |
Compliance frameworks addressing this (incoming)25
| Type | Target | Confidence | Tier |
|---|---|---|---|
| ComplianceControl | dora-art13 | 100% | live |
| ComplianceControl | cra-art14 | 100% | live |
| ComplianceControl | nis2-art21a | 100% | live |
| ComplianceControl | ai_act-art73 | 100% | live |
| ComplianceControl | owasp_api_top10-api10 | 100% | live |
| ComplianceControl | ai_act-art15 | 100% | live |
| ComplianceControl | nis2-art21e | 100% | live |
| ComplianceControl | tiber_eu-closure | 100% | live |
| ComplianceControl | dora-art11 | 100% | live |
| ComplianceControl | cra-annexi-2 | 100% | live |
| ComplianceControl | cis_v8-18 | 100% | live |
| ComplianceControl | iso27001-a.8.26 | 100% | live |
| ComplianceControl | owasp_llm_top10-llm03 | 100% | live |
| ComplianceControl | ai_act-art72 | 100% | live |
| ComplianceControl | tiber_eu-generic | 100% | live |
| ComplianceControl | nist_csf-pr | 100% | live |
| ComplianceControl | nis2-art21d | 100% | live |
| ComplianceControl | pci_dss_v4-r6 | 100% | live |
| ComplianceControl | cis_v8-16 | 100% | live |
| ComplianceControl | ai_act-art9 | 100% | live |
| ComplianceControl | dora-art25 | 100% | live |
| ComplianceControl | iso27001-a.5.7 | 100% | live |
| ComplianceControl | iso27001-a.8.29 | 100% | live |
| ComplianceControl | nist_csf-rs | 100% | live |
| ComplianceControl | owasp_llm_top10-llm04 | 95% | live |
(incoming)124
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Vulnerability | CVE-2025-0724cve-2025-0724 | 0% | live |
| Vulnerability | CVE-2025-0767cve-2025-0767 | 0% | live |
| Vulnerability | CVE-2025-0855cve-2025-0855 | 0% | live |
| Vulnerability | CVE-2025-0912cve-2025-0912 | 0% | live |
| Vulnerability | CVE-2025-0956cve-2025-0956 | 0% | live |
| Vulnerability | Trimble Cityworks Deserialization Vulnerabilitycve-2025-0994 | 0% | live |
| Vulnerability | Fortra GoAnywhere MFT Deserialization of Untrusted Data Vulnerabilitycve-2025-10035 | 0% | live |
| Vulnerability | CVE-2025-10492cve-2025-10492 | 0% | live |
| Vulnerability | CVE-2025-10768cve-2025-10768 | 0% | live |
| Vulnerability | CVE-2025-10769cve-2025-10769 | 0% | live |
| Vulnerability | CVE-2025-10771cve-2025-10771 | 0% | live |
| Vulnerability | CVE-2025-1113cve-2025-1113 | 0% | live |
| Vulnerability | CVE-2025-11345cve-2025-11345 | 0% | live |
| Vulnerability | CVE-2025-11346cve-2025-11346 | 0% | live |
| Vulnerability | CVE-2025-11367cve-2025-11367 | 0% | live |
| Vulnerability | CVE-2025-1177cve-2025-1177 | 0% | live |
| Vulnerability | CVE-2025-1186cve-2025-1186 | 0% | live |
| Vulnerability | CVE-2025-11938cve-2025-11938 | 0% | live |
| Vulnerability | CVE-2025-12305cve-2025-12305 | 0% | live |
| Vulnerability | CVE-2025-1403cve-2025-1403 | 0% | live |
| Vulnerability | CVE-2025-14044cve-2025-14044 | 0% | live |
| Vulnerability | CVE-2025-14476cve-2025-14476 | 0% | live |
| Vulnerability | CVE-2025-14931cve-2025-14931 | 0% | live |
| Vulnerability | CVE-2025-15375cve-2025-15375 | 0% | live |
| Vulnerability | CVE-2025-1556cve-2025-1556 | 0% | live |
| Vulnerability | CVE-2025-2000cve-2025-2000 | 0% | live |
| Vulnerability | CVE-2025-2105cve-2025-2105 | 0% | live |
| Vulnerability | CVE-2025-2244cve-2025-2244 | 0% | live |
| Vulnerability | CVE-2025-22526cve-2025-22526 | 0% | live |
| Vulnerability | CVE-2025-22777cve-2025-22777 | 0% | live |
Showing top 30 of 124 by confidence. Click any target to see the full neighbourhood.
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.