Weaknesses of type CWE-502

2,647 results

Desserialização de dados não confiáveis

A aplicação reconstrói objetos a partir de dados serializados (JSON, XML, binário) recebidos de fontes externas sem validar adequadamente se o conteúdo é legítimo. Um atacante pode injetar código malicioso ou objetos especialmente crafted que são executados durante a desserialização, comprometendo toda a aplicação.

Example

Um servidor Java desserializa objetos recebidos em requisições HTTP usando ObjectInputStream, sem verificar a classe ou origem dos dados. Um atacante envia um objeto serializado contendo uma cadeia de gadgets (RCE via biblioteca como Apache Commons Collections) que é executada assim que o objeto é reconstruído em memória.

How to mitigate

Valide e liste explicitamente as classes que podem ser desserializadas (whitelist). Para JSON/XML, use parsers que não executem código (como JSON simples, evite eval). Considere alternativas seguras como Protocol Buffers ou MessagePack, e mantenha bibliotecas críticas atualizadas.

CVE-2020-27868CRITICALThis vulnerability allows remote attackers to execute arbitrary code on affected installations of Qognify Ocularis 5.9.0.395. AuthenticationEPSS 81.8%CVE-2021-42125—An unrestricted file upload vulnerability exists in Ivanti Avalanche before 6.3.3 allows an attacker with access to the Inforail Service to EPSS 81.6%CVE-2024-23478HIGHSolarWinds Access Rights Manager (ARM) Deserialization of Untrusted Data Remote Code ExecutionEPSS 81.6%CVE-2023-32031HIGHMicrosoft Exchange Server Remote Code Execution VulnerabilityEPSS 81.5%CVE-2021-35216HIGHDeserialization of Untrusted Data in Resource Controls Remote Code ExecutionEPSS 81.4%CVE-2024-2054CRITICALArtica Proxy Unauthenticated PHP Deserialization VulnerabilityEPSS 81.3%CVE-2021-4104HIGHDeserialization of untrusted data in JMSAppender in Apache Log4j 1.2EPSS 81.1%CVE-2023-23836HIGHSolarWinds Platform Deserialization of Untrusted Data VulnerabilityEPSS 80.3%CVE-2023-44353CRITICALColdFusion WDDX Deserialization GadgetsEPSS 80.2%CVE-2023-36745HIGHMicrosoft Exchange Server Remote Code Execution VulnerabilityEPSS 79.3%CVE-2020-15148HIGHUnsafe deserialization in Yii 2EPSS 78.8%CVE-2024-28075CRITICALSolarWinds ARM Deserialization of Untrusted Data Remote Code ExecutionEPSS 78.0%CVE-2021-21341HIGHXStream can cause a Denial of ServiceEPSS 77.8%CVE-2021-29505HIGHXStream is vulnerable to a Remote Command Execution attackEPSS 77.2%CVE-2018-15133HIGHIn Laravel Framework through 5.5.40 and 5.6.x through 5.6.29, remote code execution might occur as a result of an unserialize call on a poteEPSS 76.8%KEVCVE-2024-5932CRITICALGiveWP – Donation Plugin and Fundraising Platform <= 3.14.1 - Unauthenticated PHP Object Injection to Remote Code ExecutionEPSS 76.8%CVE-2021-35218HIGHChart Endpoint Deserialization of Untrusted Data Remote Code Execution VulnerabilityEPSS 76.4%CVE-2021-21346MEDIUMXStream is vulnerable to an Arbitrary Code Execution attackEPSS 76.4%CVE-2026-45659HIGHMicrosoft SharePoint Remote Code Execution VulnerabilityEPSS 76.1%KEVCVE-2021-21344MEDIUMXStream is vulnerable to an Arbitrary Code Execution attackEPSS 76.0%