Fallos del tipo CWE-22

6630 resultados

Travessia de diretório (path traversal)

A aplicação constrói caminhos de arquivo a partir de entrada do usuário sem validar adequadamente sequências como '../' ou símbolos absolutos, permitindo que um atacante acesse arquivos fora do diretório permitido. Isso expõe dados sensíveis ou permite execução não autorizada de operações no sistema de arquivos.

Ejemplo

Um sistema web que serve documentos de um diretório específico recebe a requisição 'GET /doc?file=../../etc/passwd'. Se não validar a entrada, o código resolve o caminho para fora do diretório restrito e vaza o arquivo de senhas do sistema.

Cómo mitigar

Valide caminhos usando listas brancas de nomes de arquivo permitidos, normalize caminhos (remover '../' e símbolos), use APIs que isolem automaticamente operações em diretório base (ex: chroot, sandbox), e evite concatenar entrada direta em construtores de caminhos. Teste com payloads comuns de path traversal em testes de segurança.

CVE-2022-46137HIGHAeroCMS v0.0.1 is vulnerable to Directory Traversal. The impact is: obtain sensitive information (remote). The component is: AeroCMS v0.0.1.EPSS 1.5%CVE-2019-5438—Path traversal using symlink in npm harp module versions <= 0.29.0.EPSS 1.5%CVE-2025-47492HIGHWordPress Drag and Drop File Upload for Elementor Forms plugin <= 1.4.3 - Arbitrary File Deletion VulnerabilityEPSS 1.5%CVE-2025-4517CRITICALArbitrary writes via tarfile realpath overflowEPSS 1.5%CVE-2021-42542HIGHEmerson WirelessHART GatewayEPSS 1.5%CVE-2022-48285HIGHloadAsync in JSZip before 3.8.0 allows Directory Traversal via a crafted ZIP archive.EPSS 1.5%CVE-2022-33164HIGHIBM Security Directory Server path traversalEPSS 1.5%CVE-2022-34271HIGHApache Atlas: zip path traversal in import functionalityEPSS 1.5%CVE-2020-29026CRITICALA directory traversal vulnerability exists in the file upload function of the GateManager that allows an authenticated attacker with adminisEPSS 1.5%CVE-2022-47027CRITICALTimmystudios Fast Typing Keyboard v1.275.1.162 allows unauthorized apps to overwrite arbitrary files in its internal storage via a dictionarEPSS 1.5%CVE-2023-27066MEDIUMDirectory Traversal vulnerability in Site Core Experience Platform 10.2 and earlier allows authenticated remote attackers to download arbitrEPSS 1.5%CVE-2022-39034MEDIUMSmart eVision - Path Traversal -2EPSS 1.5%CVE-2023-42000CRITICALArcserve UDP Agent Unauthenticated Path Traversal File Upload EPSS 1.5%CVE-2021-21907MEDIUMA directory traversal vulnerability exists in the CMA CLI getenv command functionality of Garrett Metal Detectors’ iC Module CMA Version 5.0EPSS 1.5%CVE-2024-36116HIGHPath traversal in Reposilite javadoc file expansionEPSS 1.5%CVE-2021-21272HIGHzip slip in ORASEPSS 1.5%CVE-2022-36327MEDIUMPath traversal vulnerability leading to an arbitrary file write in Western Digital devicesEPSS 1.5%CVE-2022-31194HIGHPath traversal vulnerabilities in DSpace JSPUI submission uploadEPSS 1.5%CVE-2022-36065HIGHGrowthBook account creation and file upload vulnerability in self-hosted configurationsEPSS 1.5%CVE-2025-13661HIGHPath traversal in Ivanti Endpoint Manager prior to version 2024 SU4 SR1 allows a remote authenticated attacker to write arbitrary files outsEPSS 1.5%