Weaknesses of type CWE-22

5,984 results

Traversal de diretório (path traversal)

A aplicação recebe um caminho de arquivo fornecido pelo usuário e o usa para acessar arquivos sem validar adequadamente se o resultado fica dentro do diretório permitido. Um atacante injeta sequências como '../' ou '..' para "escapar" do diretório esperado e acessar arquivos sensíveis do sistema.

Example

Um site permite download de arquivos do diretório /uploads passando o nome via URL: download.php?file=documento.pdf. Um atacante envia file=../../etc/passwd e consegue ler arquivos fora de /uploads, porque o código não neutraliza a sequência '..'.

How to mitigate

Valide e canonicalize todo caminho fornecido pelo usuário antes de usá-lo: implemente uma whitelist de nomes permitidos, normalize caminhos para sua forma canônica, verifique se o resultado está dentro do diretório esperado, e use APIs de segurança da linguagem (ex: Path.normalize() + validação de prefix em Java, pathlib em Python).

CVE-2025-0332HIGHProgress UI for WinForms decompression path traversal vulnerabilityEPSS 0.4%CVE-2025-40898HIGHPath traversal in Import Arc data archive functionality in Guardian/CMC before 25.5.0EPSS 0.4%CVE-2026-35167HIGHKedro has a path traversal in versioned dataset loading via unsanitized version stringEPSS 0.4%CVE-2026-78590HIGHImproper Limitation of a Pathname to a Restricted Directory in Kibana Leading to Unauthorized Deletion of Privileged ResourcesEPSS 0.4%CVE-2026-59974HIGHStanza: Zip Slip Path Traversal in Model/Resource ExtractionEPSS 0.4%CVE-2026-78592HIGHImproper Limitation of a Pathname to a Restricted Directory in Kibana Leading to Unauthorized Deletion of Privileged ResourcesEPSS 0.4%CVE-2026-61625MEDIUMVictoriaMetrics vmrestore: path traversal via crafted backup part names escapes restore rootEPSS 0.4%CVE-2026-88344HIGHAn out-of-bounds read vulnerability exists in the schema lexer of flatcc 4c3b999e. When an exact-length FlatBuffers schema buffer ends with EPSS 0.4%CVE-2025-67115MEDIUMA path traversal vulnerability in /ftl/web/setup.cgi in Small Cell Sercomm SCE4255W (FreedomFi Englewood) firmware before DG3934v3@230804184EPSS 0.4%CVE-2026-29190MEDIUMKarapace: Path Traversal in Backup ReaderEPSS 0.4%CVE-2026-33238MEDIUMAVideo has a Path Traversal in listFiles.json.php that Enables Server Filesystem EnumerationEPSS 0.4%CVE-2026-13693MEDIUMBit Form < 3.1.0 - Unauthenticated Arbitrary File Read via Path TraversalEPSS 0.4%CVE-2026-97323MEDIUMYunaiV/zhijiantianya ruoyi-vue-pro File Upload MpMaterialServiceImpl.java getOriginalFilename path traversalEPSS 0.4%CVE-2026-62680HIGHOrval: Generation-time SSRF + remote/local file inclusion via unrestricted $refEPSS 0.4%CVE-2026-49342MEDIUMYARD static cache reads raw traversal paths before router sanitizationEPSS 0.4%CVE-2025-32018HIGHArbitrary file write from Cursor Agent through a prompt injection from malicious @DocsEPSS 0.4%CVE-2026-9468MEDIUMdazeb cline-mcp-memory-bank index.ts handleInitializeMemoryBank path traversalEPSS 0.4%CVE-2026-9473MEDIUMc-rick jimeng-mcp api.ts generateVideo path traversalEPSS 0.4%CVE-2025-54715MEDIUMWordPress Barcode Scanner with Inventory & Order Manager Plugin <= 1.9.0 - Arbitrary File Download VulnerabilityEPSS 0.4%CVE-2026-8116MEDIUMhuangjunsen0406 xiaozhi-mcphub dxtController.ts path traversalEPSS 0.4%