Falhas do tipo CWE-22

6.021 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-21448MEDIUMPath traversal vulnerability in Samsung Cloud prior to version 5.3.0.32 allows attacker to access specific png file.EPSS 0.2%CVE-2026-35204HIGHHelm has a path traversal in plugin metadata version enables arbitrary file write outside Helm plugin directoryEPSS 0.2%CVE-2026-35254MEDIUMVulnerability in the Oracle OCI CLI product of Oracle Open Source Projects. The supported versions that is affected is 3.77. Easily exploitaEPSS 0.2%CVE-2026-47764HIGHpdm: Path traversal in wheel installation via overridden write_to_fsEPSS 0.2%CVE-2026-54545HIGH@wakaru/cli arbitrary file write during bundle unpackEPSS 0.2%CVE-2026-66484MEDIUMPath Traversal in GNU cpioEPSS 0.2%CVE-2026-72783MEDIUMCraft CMS 5.0.0-RC1 before 5.10.6 Path Traversal via ensurePathIsContainedEPSS 0.2%CVE-2022-41670HIGHA CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability exists in the SGIUtility component thEPSS 0.2%CVE-2026-47243CRITICALKata guest escape: runtime-rs guest-root to host-root escape via virtiofsEPSS 0.2%CVE-2026-47425MEDIUMRattler vulnerable to entry-point path traversal in noarch:python install (arbitrary file write)EPSS 0.2%CVE-2024-47566MEDIUMA improper limitation of a pathname to a restricted directory ('path traversal') [CWE-23] in Fortinet FortiRecorder version 7.2.0 through 7.EPSS 0.2%CVE-2024-45401HIGHstripe-cli Path Traversal vulnerabilityEPSS 0.2%CVE-2026-79904MEDIUMPhotoshop Mobile | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)EPSS 0.2%CVE-2025-24889MEDIUMPath traversal in sd-log Qubes virtual machineEPSS 0.2%CVE-2024-32944LOWPath traversal vulnerability exists in UTAU versions prior to v0.4.19. If a user of the product installs a crafted UTAU voicebank installer EPSS 0.2%CVE-2026-65712MEDIUMJoomla Extension - regularlabs.com - Insecure path handling in CDN for Joomla Pro extensionEPSS 0.2%CVE-2026-79534MEDIUMmark3labs mcp-filesystem-server v0.11.1 is vulnerable to Directory Traversal due to an improper link resolution in validatePath (filesystemsEPSS 0.2%CVE-2025-43465LOWA parsing issue in the handling of directory paths was addressed with improved path validation. This issue is fixed in macOS Tahoe 26.1. An EPSS 0.2%CVE-2026-25145MEDIUMmelange has a path traversal in license-path which allows reading files outside workspaceEPSS 0.2%CVE-2026-55832MEDIUMTract: Arbitrary file read via unsanitized ONNX external_data `location` (path traversal) on model load in tract-onnxEPSS 0.2%