Falhas do tipo CWE-23

509 resultados

Traversal de diretório por falta de validação de caminho

O software usa entrada externa para construir um caminho de arquivo, mas não neutraliza sequências como '..' que podem escapar do diretório restrito. Um atacante pode acessar ou manipular arquivos fora da área permitida usando essas sequências de navegação.

Exemplo

Uma API de download de documentos recebe o parâmetro 'arquivo=relatorio.pdf' e monta o caminho '/home/docs/' + arquivo. Se o atacante enviar 'arquivo=../../etc/passwd', o caminho resultante '/home/docs/../../etc/passwd' resolve para '/etc/passwd', expondo informações sensíveis do sistema.

Como mitigar

Valide e normalize o caminho completo resolvido (use realpath() ou Path.resolve()) e verifique se fica dentro do diretório permitido; alterne para uma whitelist de arquivos conhecidos ou use índices seguros em vez de construir caminhos diretamente com entrada do usuário.

CVE-2026-21659HIGHJohnson Controls -Frick Quantum HD-Unauthenticated Remote Code Execution and Information Disclosure due to Local File InclusionEPSS 0.9%CVE-2024-22398MEDIUMAn improper Limitation of a Pathname to a Restricted Directory (Path Traversal) vulnerability in SonicWall Email Security Appliance could alEPSS 0.9%CVE-2023-4897HIGHRelative Path Traversal in mintplex-labs/anything-llmEPSS 0.9%CVE-2023-42783HIGHA relative path traversal in Fortinet FortiWLM version 8.6.0 through 8.6.5 and 8.5.0 through 8.5.4 and 8.4.2 through 8.4.0 and 8.3.2 throughEPSS 0.9%CVE-2023-4914MEDIUMRelative Path Traversal in cecilapp/cecilEPSS 0.9%CVE-2024-10513HIGHPath Traversal in mintplex-labs/anything-llmEPSS 0.9%CVE-2024-6483MEDIUMArbitrary File/Directory Deletion in aimhubio/aimEPSS 0.9%CVE-2026-8023HIGHPath traversal in Zephyr HTTP server static-filesystem resource handler allows unauthenticated remote arbitrary file readEPSS 0.9%CVE-2026-40400HIGHWindows PowerShell Remote Code Execution VulnerabilityEPSS 0.9%CVE-2026-62837MEDIUMMicrosoft SharePoint Server Information Disclosure VulnerabilityEPSS 0.9%CVE-2023-31036HIGHCVEEPSS 0.9%CVE-2025-29789MEDIUMOpenEMR Has Directory Traversal in Load Code featureEPSS 0.8%CVE-2025-1588MEDIUMPHPGurukul Online Nurse Hiring System manage-nurse.php path traversalEPSS 0.8%CVE-2023-5189MEDIUMHub: insecure galaxy-importer tarfile extractionEPSS 0.8%CVE-2023-6307MEDIUMjeecgboot JimuReport image path traversalEPSS 0.8%CVE-2024-56340MEDIUMIBM Cognos Analytics path traversalEPSS 0.8%CVE-2021-32964MEDIUMClaroty Secure Remote Access Site - Authentication Bypass Using an Alternate Path or ChannelEPSS 0.8%CVE-2026-32725HIGHSciTokens C++: Relative Path Traversal VulnerabilityEPSS 0.8%CVE-2026-49290HIGHSlopsmith has path traversal in archive extractors that allows arbitrary file write → potential RCEEPSS 0.8%CVE-2026-84939CRITICALApache FreeMarker, Apache FreeMarker: A malformed locale may be exploitable for path traversal attacksEPSS 0.8%