Falhas do tipo CWE-22

6.022 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-2023-5097HIGHImproper Input Validation vulnerability in HYPR Workforce Access on Windows allows Path Traversal.This issue affects Workforce Access: beforEPSS 0.2%CVE-2026-96419MEDIUMImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in WiresharkEPSS 0.2%CVE-2026-45224MEDIUMCrabbox < 0.9.0 Path Traversal via Islo Provider Workspace ResolutionEPSS 0.2%CVE-2026-29780MEDIUMeml_parser: Path Traversal in Official Example Script Leading to Arbitrary File WriteEPSS 0.2%CVE-2026-35570HIGHOpenClaude has Sandbox Bypass via Early-Exit Logic Flaw that Allows Path TraversalEPSS 0.2%CVE-2026-30853MEDIUMcalibre has a Path Traversal Leading to Arbitrary File WriteEPSS 0.2%CVE-2026-84201MEDIUMappium-mcp-server through 0.1.61 Path Traversal in write_file and write_files_batchEPSS 0.2%CVE-2026-43989HIGHJunoClaw: upload_wasm accepted arbitrary filesystem paths without validationEPSS 0.2%CVE-2026-49497MEDIUMGhidra < 12.1 - Path Traversal via .gnu_debuglink in DWARF External Debug File ResolutionEPSS 0.2%CVE-2026-28482HIGHOpenClaw < 2026.2.12 - Path Traversal via Unsanitized sessionId and sessionFile ParametersEPSS 0.2%CVE-2025-3465HIGHPath Traversal VulnerabilityEPSS 0.2%CVE-2026-39973HIGHApktool: Path Traversal to Arbitrary File WriteEPSS 0.2%CVE-2026-43723HIGHA path handling issue was addressed with improved validation. This issue is fixed in iOS 18.7.10 and iPadOS 18.7.10, iOS 26.6 and iPadOS 26.EPSS 0.2%CVE-2026-58203MEDIUMNestedSecretsSettingsSource follows symlinks outside secrets_dir, enabling local file read and bypassing secrets_dir_max_sizeEPSS 0.2%CVE-2026-13748MEDIUMSnowflake CLI Arbitrary Local File Read and Exfiltration Through Improper File Path RestrictionEPSS 0.2%CVE-2026-85456MEDIUMMOOS-IvP through 24.8.1 alog Splitting Path Traversal on WindowsEPSS 0.2%CVE-2026-50181HIGHLangroid: Path traversal in the file tools allows read/write outside configured current directoryEPSS 0.2%CVE-2026-47144MEDIUMShamefile has an arbitrary file read via shamefile.yaml in shame nextEPSS 0.2%CVE-2023-20943HIGHIn clearApplicationUserData of ActivityManagerService.java, there is a possible way to remove system files due to a path traversal error. ThEPSS 0.2%CVE-2022-36400MEDIUMPath traversal in the installer software for some Intel(r) NUC Kit Wireless Adapter drivers for Windows 10 before version 22.40 may allow anEPSS 0.2%