Weaknesses of type CWE-22

5,976 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-2026-76222HIGHGitPython before 3.1.58 Path Traversal via .gitmodules Submodule NameEPSS 0.4%CVE-2026-81743HIGHFlowintel Arbitrary Log File Path Allows Remote Code Execution via Template InjectionEPSS 0.4%CVE-2026-63134MEDIUMMalcolm's Path Traversal in Archive Extraction Allows Arbitrary Directory CreationEPSS 0.4%CVE-2026-85015MEDIUMUnlimited Elements For Elementor < 2.0.21 - Authenticated Arbitrary File Write via Path TraversalEPSS 0.4%CVE-2026-28786MEDIUMOpen WebUI vulnerable to Path Traversal in `POST /api/v1/audio/transcriptions`EPSS 0.4%CVE-2026-48798HIGHSSH.NET: ScpClient Recursive Download Allows Arbitrary File Write via Server-Controlled SCP FilenamesEPSS 0.4%CVE-2026-104871MEDIUMAngular SSR: Path Traversal to Sibling Directories in CommonEngine on WindowsEPSS 0.4%CVE-2026-34978MEDIUMOpenPrinting CUPS: Path traversal in RSS notify-recipient-uri enables file write outside CacheDir/rss (and clobbering of job.cache)EPSS 0.4%CVE-2025-6774MEDIUMgooaclok819 sublinkX template.go AddTemp path traversalEPSS 0.4%CVE-2025-10777MEDIUMJSC R7 R7-Office Document Server downloadas path traversalEPSS 0.4%CVE-2024-37825MEDIUMAn issue in EnvisionWare Computer Access & Reservation Control SelfCheck v1.0 (fixed in OneStop 3.2.0.27184 Hotfix May 2024) allows unauthenEPSS 0.4%CVE-2025-7518MEDIUMRSFirewall! <= 1.1.42 - Authenticated (Admin+) Arbitrary File ReadEPSS 0.4%CVE-2026-92812HIGHdecap-server Path Traversal via Sibling Directory Prefix MatchingEPSS 0.4%CVE-2026-16335HIGHDataStage on Cloud Pak for Data has several vulnerabilities due to open source softwareEPSS 0.4%CVE-2026-31978MEDIUMmotionEye: Arbitrary File Read via Path Traversal in Picture/Movie Preview EndpointEPSS 0.4%CVE-2026-82112MEDIUMhoutini-ai houtini-lm code_task_files index.ts path traversalEPSS 0.4%CVE-2024-11615MEDIUMEnvolve Plugin <= 1.0 - Unauthenticated Language File DeletionEPSS 0.4%CVE-2026-54150MEDIUMnext-video: Unauthenticated arbitrary file read via /api/video request handlerEPSS 0.4%CVE-2025-1915HIGHImproper Limitation of a Pathname to a Restricted Directory in DevTools in Google Chrome on Windows prior to 134.0.6998.35 allowed an attackEPSS 0.4%CVE-2026-44298MEDIUMKimai: Arbitrary file read in invoice PDF renderer (admin)EPSS 0.4%