Falhas do tipo CWE-22

5.866 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-22926CRITICALAn issue in OS4ED openSIS v8.0 through v9.1 allows attackers to execute a directory traversal by sending a crafted POST request to /Modules.EPSS 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-2024-3737MEDIUMcym1102 nginxWebUI addOver findCountByQuery path traversalEPSS 0.9%CVE-2026-42075HIGHEvolver: Path Traversal via `--out` flag in `fetch` command allows Arbitrary File WriteEPSS 0.9%CVE-2026-45233HIGHHTMLy CMS 3.1.1 Path Traversal via oldfile Parameter in AutosaveEPSS 0.9%CVE-2026-72695HIGHGrav before 2.0.16 Path Traversal via MediaUploadTrait deleteFileEPSS 0.9%CVE-2026-24135HIGHGogs vulnerable to arbitrary file deletion via path traversal in wiki page updateEPSS 0.9%CVE-2026-7020MEDIUMOllama Tensor Model Transfer transfer.go digestToPath path traversalEPSS 0.9%CVE-2026-25559HIGHOpenBullet2 0.3.2 Path Traversal via Wordlist EndpointEPSS 0.9%CVE-2026-46383MEDIUMMicrosoft APM: Windows absolute-path tar member overwrite during legacy-bundle probing in `apm install`EPSS 0.9%CVE-2026-57863HIGHCrater Invoice 6.0.6 Path Traversal RCE via update/unzip endpointEPSS 0.9%CVE-2026-0847HIGHPath Traversal in nltk/nltkEPSS 0.9%CVE-2024-11952HIGHClassic Addons – WPBakery Page Builder <= 3.0 - Authenticated (Contributor+) Limited Local PHP File InclusionEPSS 0.9%CVE-2020-36883HIGHSpinetiX Fusion Digital Signage 3.4.8 Authenticated Path Traversal via File OperationsEPSS 0.9%CVE-2026-85606HIGHfirecrawl-mcp-server 3.20.2 Arbitrary Local File Read via filePathEPSS 0.9%CVE-2017-20152LOWaerouk imageserve File viewer.php path traversalEPSS 0.9%CVE-2026-82460CRITICALCloud Commander before 19.20.2 Directory Traversal via REST and MarkdownEPSS 0.9%CVE-2025-23092HIGHMitel OpenScape Accounting Management through V5 R1.1.0 could allow an authenticated attacker with administrative privileges to conduct a paEPSS 0.9%CVE-2022-24730HIGHPath traversal and improper access control allows leaking out-of-bound files from Argo CD repo-serverEPSS 0.9%CVE-2021-32842MEDIUMPath Traversal in SharpZipLibEPSS 0.9%