Falhas do tipo CWE-22

5.925 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-55149MEDIUMPath Traversal Vulnerability in PDF Review Function (CWE-22)EPSS 0.6%CVE-2025-34154CRITICALUnForm Server Manager < 10.1.12 Unauthenticated Arbitrary File ReadEPSS 0.6%CVE-2024-11398HIGHImproper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in OTP reset functionality in Synology Router MEPSS 0.6%CVE-2019-25256HIGHVideoFlow Digital Video Protection DVP 2.10 Authenticated Directory TraversalEPSS 0.6%CVE-2024-44030HIGHWordPress Checkout Mestres WP plugin <= 8.6 - Local File Inclusion vulnerabilityEPSS 0.6%CVE-2026-22905HIGHAuthentication Bypass via URI TraversalEPSS 0.6%CVE-2024-6085HIGHPath Traversal in parisneo/lollmsEPSS 0.6%CVE-2026-6968HIGHMultiple Path Traversal Variants in awslabs/toughEPSS 0.6%CVE-2025-14111LOWRarlab RAR App com.rarlab.rar path traversalEPSS 0.6%CVE-2025-24891CRITICALDumb Drop has an arbitrary file overwrite and path traversal for root shellEPSS 0.6%CVE-2024-23768HIGHDremio before 24.3.1 allows path traversal. An authenticated user who has no privileges on certain folders (and the files and datasets in thEPSS 0.6%CVE-2024-32869MEDIUMHono vulnerable to Restricted Directory Traversal in serveStatic with denoEPSS 0.6%CVE-2026-82665MEDIUMyaojingang GEOFlow Image Library Cleanup ImageLibraryController.php unlink path traversalEPSS 0.6%CVE-2026-3051MEDIUMDataLinkDC dinky Project Name GitRepository.java getProjectDir path traversalEPSS 0.6%CVE-2025-9079HIGHAdmin RCE via prepackaged plugins by way of misconfigured imports directoryEPSS 0.6%CVE-2023-3698HIGHA Command injection vulnerability was found on Printer service of ADMEPSS 0.6%CVE-2025-64712CRITICALUnstructured has Path Traversal via Malicious MSG Attachment that Allows Arbitrary File WriteEPSS 0.6%CVE-2026-40576CRITICALImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in excel-mcp-serverEPSS 0.6%CVE-2025-6772MEDIUMeosphoros-ai db-gpt import import_flow path traversalEPSS 0.6%CVE-2025-65418HIGHdocuFORM Managed Print Service Client 11.11c is vulnerable to a directory traversal allowing attackers to read arbitrary files via crafted uEPSS 0.6%