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 State
    Attackers 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 Context
    The 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

CAPEC-586

References

  1. https://cwe.mitre.org/data/definitions/502.html

Exploits (incoming)1

TypeTargetConfidenceTier
AttackPatternObject Injectioncapec-586100%live

Compliance frameworks addressing this (incoming)25

TypeTargetConfidenceTier
ComplianceControldora-art13100%live
ComplianceControlcra-art14100%live
ComplianceControlnis2-art21a100%live
ComplianceControlai_act-art73100%live
ComplianceControlowasp_api_top10-api10100%live
ComplianceControlai_act-art15100%live
ComplianceControlnis2-art21e100%live
ComplianceControltiber_eu-closure100%live
ComplianceControldora-art11100%live
ComplianceControlcra-annexi-2100%live
ComplianceControlcis_v8-18100%live
ComplianceControliso27001-a.8.26100%live
ComplianceControlowasp_llm_top10-llm03100%live
ComplianceControlai_act-art72100%live
ComplianceControltiber_eu-generic100%live
ComplianceControlnist_csf-pr100%live
ComplianceControlnis2-art21d100%live
ComplianceControlpci_dss_v4-r6100%live
ComplianceControlcis_v8-16100%live
ComplianceControlai_act-art9100%live
ComplianceControldora-art25100%live
ComplianceControliso27001-a.5.7100%live
ComplianceControliso27001-a.8.29100%live
ComplianceControlnist_csf-rs100%live
ComplianceControlowasp_llm_top10-llm0495%live

(incoming)124

TypeTargetConfidenceTier
VulnerabilityCVE-2025-0724cve-2025-07240%live
VulnerabilityCVE-2025-0767cve-2025-07670%live
VulnerabilityCVE-2025-0855cve-2025-08550%live
VulnerabilityCVE-2025-0912cve-2025-09120%live
VulnerabilityCVE-2025-0956cve-2025-09560%live
VulnerabilityTrimble Cityworks Deserialization Vulnerabilitycve-2025-09940%live
VulnerabilityFortra GoAnywhere MFT Deserialization of Untrusted Data Vulnerabilitycve-2025-100350%live
VulnerabilityCVE-2025-10492cve-2025-104920%live
VulnerabilityCVE-2025-10768cve-2025-107680%live
VulnerabilityCVE-2025-10769cve-2025-107690%live
VulnerabilityCVE-2025-10771cve-2025-107710%live
VulnerabilityCVE-2025-1113cve-2025-11130%live
VulnerabilityCVE-2025-11345cve-2025-113450%live
VulnerabilityCVE-2025-11346cve-2025-113460%live
VulnerabilityCVE-2025-11367cve-2025-113670%live
VulnerabilityCVE-2025-1177cve-2025-11770%live
VulnerabilityCVE-2025-1186cve-2025-11860%live
VulnerabilityCVE-2025-11938cve-2025-119380%live
VulnerabilityCVE-2025-12305cve-2025-123050%live
VulnerabilityCVE-2025-1403cve-2025-14030%live
VulnerabilityCVE-2025-14044cve-2025-140440%live
VulnerabilityCVE-2025-14476cve-2025-144760%live
VulnerabilityCVE-2025-14931cve-2025-149310%live
VulnerabilityCVE-2025-15375cve-2025-153750%live
VulnerabilityCVE-2025-1556cve-2025-15560%live
VulnerabilityCVE-2025-2000cve-2025-20000%live
VulnerabilityCVE-2025-2105cve-2025-21050%live
VulnerabilityCVE-2025-2244cve-2025-22440%live
VulnerabilityCVE-2025-22526cve-2025-225260%live
VulnerabilityCVE-2025-22777cve-2025-227770%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.

CWE
Insufficient Verification of Data Authenticity
CWE
Improper Neutralization
CWE
Reliance on Insufficiently Trustworthy Component
CWE
Improper Verification of Cryptographic Signature
CWE
Insecure Storage of Sensitive Information
CWE
Exposure of Sensitive Information to an Unauthorized Actor
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.