Weaknesses of type CWE-22

5,975 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-46397MEDIUMhaxcms-php Local File Inclusion via saveOutline API Location Parameter v2.0EPSS 0.4%CVE-2025-53622MEDIUMDSpace has path traversal vulnerability in Simple Archive Format (SAF) package import via contents fileEPSS 0.4%CVE-2026-96898MEDIUMyhx070424 ShopXO Ueditor Upload ueditor.php path traversalEPSS 0.4%CVE-2026-73642CRITICALPath Traversal in Dayforce PayrollEPSS 0.4%CVE-2024-55926HIGHArbitrary file upload, deletion and read through header manipulationEPSS 0.4%CVE-2026-3339LOWKeep Backup Daily <= 2.1.1 - Authenticated (Admin+) Limited Path Traversal via 'kbd_path' ParameterEPSS 0.4%CVE-2026-40536MEDIUMAn improper limitation of a pathname to a restricted directory ('path traversal') vulnerability in Audio API in Synology DiskStation ManagerEPSS 0.4%CVE-2026-32147MEDIUMSFTP chroot bypass via path traversal in SSH_FXP_FSETSTATEPSS 0.4%CVE-2026-32847HIGHDeepCode 1.2.0 Path Traversal via SPA Catch-All Route in main.pyEPSS 0.4%CVE-2026-82426MEDIUMApache Storm Nimbus: Arbitrary File Read on Nimbus via Unvalidated Uploaded Jar LocationEPSS 0.4%CVE-2025-65952HIGHConsole is vulnerable to path traversal regarding custom assetsEPSS 0.4%CVE-2025-13891MEDIUMImage Gallery – Photo Grid & Video Gallery (Modula) <= 2.13.3 - Missing Authorization to Arbitrary Directory ListingEPSS 0.4%CVE-2026-46343HIGHWazuh: Arbitrary File Deletion via Cluster Protocol – Incomplete Path Validation in end_receiving_file()EPSS 0.4%CVE-2023-52144MEDIUMWordPress Product Feed Manager plugin <= 7.3.15 - Directory Traversal vulnerabilityEPSS 0.4%CVE-2026-42314MEDIUMpyLoad: Path Traversal via Package Folder NameEPSS 0.4%CVE-2026-66004MEDIUMBlenderMCP Path Traversal via download_polyhaven_asset APIEPSS 0.4%CVE-2025-57753MEDIUMvite-plugin-static-copy files not included in `src` are accessible with a crafted requestEPSS 0.4%CVE-2026-81743HIGHFlowintel Arbitrary Log File Path Allows Remote Code Execution via Template InjectionEPSS 0.4%CVE-2025-29865HIGH: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in TAGFREE X-Free Uploader XFU allows Path TrEPSS 0.4%CVE-2026-76222HIGHGitPython before 3.1.58 Path Traversal via .gitmodules Submodule NameEPSS 0.4%