Falhas do tipo CWE-22

5.967 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-24960HIGHMissing Input validation for filename in backups endpoint in JellystatEPSS 0.5%CVE-2024-47556HIGHPre-Auth RCE via Path TraversalEPSS 0.5%CVE-2025-26779MEDIUMWordPress Keep Backup Daily plugin <= 2.1.0 - Arbitrary File Download vulnerabilityEPSS 0.5%CVE-2024-47557HIGHPre-Auth RCE via Path TraversalEPSS 0.5%CVE-2025-49448HIGHWordPress FW Food Menu plugin <= 6.0.0 - Arbitrary File Deletion VulnerabilityEPSS 0.5%CVE-2026-12609HIGHIn Eclipse Theia versions 1.66.0 and up until including 1.73.1, the `@theia/plugin-ext` backend exposes the `/hostedPlugin/:pluginId/:path(*EPSS 0.5%CVE-2026-54017HIGHOpen WebUI: Path traversal / SSRF in terminal server proxy via encoded path traversalEPSS 0.5%CVE-2026-53502HIGHThumbor has path traversal via post-validation URL decoding bypass in file_loaderEPSS 0.5%CVE-2026-86258HIGHnbviewer through 1.0.1 Path Traversal via LocalFileHandlerEPSS 0.5%CVE-2026-30351HIGHA path traversal vulnerability in the UI/static component of leonvanzyl autocoder commit 79d02a allows attackers to read arbitrary files viaEPSS 0.5%CVE-2026-61505MEDIUMRejetto HFS < 3.2.1 Limited File Disclosure via Path Traversal in lang ParameterEPSS 0.5%CVE-2026-19672MEDIUMtarfile extraction filter bypass allows creation of directories outside the destinationEPSS 0.5%CVE-2026-41493MEDIUMyard: Possible arbitrary path traversal and file access via yard serverEPSS 0.5%CVE-2026-48777CRITICALFileBrowser Quantum: Path Traversal in public share PATCH allows file ops outside shared directoryEPSS 0.5%CVE-2026-26985HIGHLORIS vulnerable to path traversal in electrophysiology_browserEPSS 0.5%CVE-2026-1811MEDIUMbolo-blog bolo-solo Filename BackupService.java importFromMarkdown path traversalEPSS 0.5%CVE-2026-82251HIGHgitoxide before 0.52.1 Path Traversal via Submodule NameEPSS 0.5%CVE-2026-73509HIGHOpenList: Authenticated users can rename files outside their base path via batch rename `src_name` traversalEPSS 0.5%CVE-2026-36851HIGHPath traversal vulnerability in UnPoller 2.33.0 password field allows arbitrary file read and network exfiltration.EPSS 0.5%CVE-2024-9575HIGHLocal File Inclusion in pretix-widget WordPress pluginEPSS 0.5%