Weaknesses of type CWE-22

6,632 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-2020-37034HIGHHelloWeb 2.0 - Arbitrary File DownloadEPSS 1.1%CVE-2023-41682HIGHA improper limitation of a pathname to a restricted directory ('path traversal') vulnerability in Fortinet FortiSandbox 4.4.0, FortiSandbox EPSS 1.1%CVE-2021-21298LOWPath traversal in Node-RedEPSS 1.1%CVE-2021-32841MEDIUMPath Traversal in SharpZipLibEPSS 1.1%CVE-2026-86439HIGHknowns before 0.30.0 Path Traversal via MCP doc and memory toolsEPSS 1.1%CVE-2021-21284MEDIUMprivilege escalation in MobyEPSS 1.1%CVE-2024-6885HIGHMaxiBlocks: 2200+ Patterns, 190 Pages, 14.2K Icons & 100 Styles <= 1.9.2 - Authenticated (Subscriber+) Arbitrary File DeletionEPSS 1.1%CVE-2023-45867—ILIAS (2013-09-12 release) contains a medium-criticality Directory Traversal local file inclusion vulnerability in the ScormAicc module. An EPSS 1.1%CVE-2023-1956MEDIUMSourceCodester Online Computer and Laptop Store Image path traversalEPSS 1.1%CVE-2024-11037MEDIUMPath Traversal in binary-husky/gpt_academicEPSS 1.1%CVE-2020-24855MEDIUMDirectory Traversal vulnerability in easywebpack-cli before 4.5.2 allows attackers to obtain sensitive information via crafted GET request.EPSS 1.1%CVE-2022-46171MEDIUMTauri vulnerable to path traversalEPSS 1.1%CVE-2023-6753CRITICALPath Traversal in mlflow/mlflowEPSS 1.1%CVE-2024-31801HIGHDirectory Traversal vulnerability in NEXSYS-ONE before v.Rev.15320 allows a remote attacker to obtain sensitive information via a crafted reEPSS 1.1%CVE-2025-0493CRITICALMultiVendorX – The Ultimate WooCommerce Multivendor Marketplace Solution <= 4.2.14 - Unauthenticated Limited Local File InclusionEPSS 1.1%CVE-2022-45894MEDIUMGetFile.aspx in Planet eStream before 6.72.10.07 allows ..\ directory traversal to read arbitrary local files.EPSS 1.1%CVE-2024-6312MEDIUMFunnelforms Free <= 3.7.3.2 - Authenticated (Administrator+) Arbitrary File DeletionEPSS 1.1%CVE-2024-6851HIGHArbitrary File Deletion in aimhubio/aimEPSS 1.1%CVE-2022-42977HIGHThe Netic User Export add-on before 1.3.5 for Atlassian Confluence has the functionality to generate a list of users in the application, andEPSS 1.1%CVE-2023-43044MEDIUMIBM License Metric Tool directory traversalEPSS 1.1%