Falhas do tipo CWE-22

5.902 resultados

Travessia de diretório (Path Traversal)

A aplicação constrói caminhos de arquivo usando entrada do usuário sem validar adequadamente, permitindo que caracteres especiais como '../' façam o caminho "sair" do diretório permitido e acessar arquivos fora da zona restrita. Isso expõe dados sensíveis ou permite manipulação de arquivos críticos do sistema.

Exemplo

Um site permite download de documentos via URL como /download?file=relatorio.pdf, mas não valida o parâmetro. Um atacante usa /download?file=../../etc/passwd para ler o arquivo de senhas do servidor, ou /download?file=../../configuracao.db para acessar a base de dados da aplicação.

Como mitigar

Valide e normalize todos os caminhos de entrada (use funções nativas como realpath ou canonicalize), implemente uma whitelist de arquivos permitidos em vez de bloquear padrões perigosos, e configure permissões de arquivo restritivas no SO. Melhor ainda: nunca construa caminhos a partir de entrada do usuário — use índices ou IDs mapeados internamente.

CVE-2025-8021HIGHAll versions of the package files-bucket-server are vulnerable to Directory Traversal where an attacker can traverse the file system and accEPSS 0.8%CVE-2023-42226HIGHPat Infinite Solutions HelpdeskAdvanced <= 11.0.33 is vulnerable to Directory Traversal via Email/SaveAttachment function.EPSS 0.8%CVE-2023-42227HIGHPat Infinite Solutions HelpdeskAdvanced <= 11.0.33 is vulnerable to Directory Traversal via the WSCView/Save function.EPSS 0.8%CVE-2023-42225HIGHPat Infinite Solutions HelpdeskAdvanced <= 11.0.33 is vulnerable to Directory Traversal via the Attachment/DownloadTempFile function.EPSS 0.8%CVE-2023-6908LOWDFIRKuiper TAR Archive case_management.py unzip_file path traversalEPSS 0.8%CVE-2022-4402MEDIUMRainyGao DocSys ZIP File Decompression path traversalEPSS 0.8%CVE-2022-42123HIGHA Zip slip vulnerability in the Elasticsearch Connector in Liferay Portal 7.3.3 through 7.4.3.18, and Liferay DXP 7.3 before update 6, and 7EPSS 0.8%CVE-2022-42125HIGHZip slip vulnerability in FileUtil.unzip in Liferay Portal 7.4.3.5 through 7.4.3.35 and Liferay DXP 7.4 update 1 through update 34 allows atEPSS 0.8%CVE-2023-39528MEDIUMPrestaShop vulnerable to file reading through path traversalEPSS 0.8%CVE-2022-47595MEDIUMWordPress WP Google Maps Plugin <= 9.0.15 is vulnerable to Path TraversalEPSS 0.8%CVE-2025-3671HIGHWPGYM - Wordpress Gym Management System <= 67.7.0 - Authenticated (Subscriber+) Local File Inclusion to Privilege Escalation via Password UpdateEPSS 0.8%CVE-2025-5740HIGHCWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability exists that could cause arbitrary file EPSS 0.8%CVE-2025-2932HIGHJKDEVKIT <= 1.9.4 - Authenticated (Subscriber+) Arbitrary File DeletionEPSS 0.8%CVE-2026-28208MEDIUMJunrar has arbitrary file write due to backslash path traversal bypass in LocalFolderExtractor on Linux/UnixEPSS 0.8%CVE-2025-5014HIGHHome Villas | Real Estate WordPress Theme <= 2.8 - Authenticated (Subscriber+) Arbitrary File DeletionEPSS 0.8%CVE-2023-38366MEDIUMIBM FileNet Content Manager directory traversalEPSS 0.8%CVE-2024-55213MEDIUMDirectory Traversal vulnerability in dhtmlxFileExplorer v.8.4.6 allows a remote attacker to obtain sensitive information via the File ListinEPSS 0.8%CVE-2025-34395HIGHBarracuda RMM < 2025.1.1 Service Center .NET Remoting Path Traversal RCEEPSS 0.8%CVE-2022-43748MEDIUMImproper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in file operation management in Synology PrestoEPSS 0.8%CVE-2025-65897HIGHzdh_web is a data collection, processing, monitoring, scheduling, and management platform. In zdh_web thru 5.6.17, insufficient validation oEPSS 0.8%