Weaknesses of type CWE-22

5,915 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-77751HIGHPath Traversal in MISP Object Template Resolution During STIX Import and Export in misp-stix libraryEPSS 0.7%CVE-2025-15138MEDIUMprasathmani TinyFileManager tinyfilemanager.php path traversalEPSS 0.7%CVE-2024-12083MEDIUMPath Traversal Vulnerabilities in NJ/NX-series Machine Automation ControllersEPSS 0.7%CVE-2017-2627HIGHA flaw was found in openstack-tripleo-common as shipped with Red Hat Openstack Enterprise 10 and 11. The sudoers file as installed with OSP'EPSS 0.7%CVE-2026-0805HIGHImproper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Crafty ControllerEPSS 0.7%CVE-2024-25567HIGHDelta Electronics DIAEnergie Path traversalEPSS 0.7%CVE-2024-31287MEDIUMWordPress Media Library Folders plugin <= 8.1.8 - Directory Traversal vulnerabilityEPSS 0.7%CVE-2023-2316HIGHTypora Local File DisclosureEPSS 0.7%CVE-2026-15815HIGHCVE-2026-15815 CVE RecordEPSS 0.7%CVE-2023-5355HIGHAwesome Support < 6.1.5 - Submitter+ Arbitrary File DeletionEPSS 0.7%CVE-2025-5714MEDIUMSoluçõesCoop iSoluçõesWEB Profile Information Update up.upload.php path traversalEPSS 0.7%CVE-2025-66292HIGHDPanel has an arbitrary file deletion vulnerability in /api/common/attach/delete interfaceEPSS 0.7%CVE-2022-40742MEDIUMSOFTNEXT TECHNOLOGIES CORP. Mail SQR Expert - Local File InclusionEPSS 0.7%CVE-2023-35881HIGHWordPress WooCommerce One Page Checkout plugin <= 2.3.0 - Local File Inclusion vulnerabilityEPSS 0.7%CVE-2026-67309HIGHTraefik v3.7.0 Path Traversal via RewriteTarget Authentication BypassEPSS 0.7%CVE-2023-45722HIGHPath Traversal Arbitrary File Read affects DRYiCE MyXalyticsEPSS 0.7%CVE-2026-18427HIGH@fastify/static vulnerable to route guard bypass via non-canonical path segmentsEPSS 0.7%CVE-2024-24869HIGHWordPress Total Upkeep plugin <= 1.15.8 - Arbitrary File Download vulnerabilityEPSS 0.7%CVE-2023-23608NONEspotipy Path traversal vulnerability that may lead to type confusion in URI handling codeEPSS 0.7%CVE-2024-31240HIGHWordPress WP Poll Maker plugin <= 3.1 - Auth. Arbitrary File Deletion vulnerabilityEPSS 0.7%