Weaknesses of type CWE-22

5,902 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-2024-32005HIGHLocal File Inclusion in NiceGUI leaflet componentEPSS 0.8%CVE-2022-27621MEDIUMImproper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in webapi component in Synology USB Copy beforeEPSS 0.8%CVE-2025-54307HIGHAn issue was discovered in the Thermo Fisher Torrent Suite Django application 5.18.1. The /configure/plugins/plugin/upload/zip/ and /configuEPSS 0.8%CVE-2024-11215MEDIUMPath traversal vulnerability in EasyPHPEPSS 0.8%CVE-2026-7319MEDIUMelinsky execution-system-mcp add_action Tool server.py _get_context_file_path path traversalEPSS 0.8%CVE-2023-1109HIGHPHOENIX CONTACT: Directory Traversal Vulnerability in ENERGY AXC PU Web serviceEPSS 0.8%CVE-2024-0697MEDIUMBackuply – Backup, Restore, Migrate and Clone <= 1.2.3 - Authenticated (Administrator+) Directory TraversalEPSS 0.8%CVE-2026-69201MEDIUMHttp4s: ResourceService and Webjar Service path escape via percent-encoded separatorsEPSS 0.8%CVE-2021-41127HIGHMaliciously Crafted Model Archive Can Lead To Arbitrary File Write in rasaEPSS 0.8%CVE-2023-32297CRITICALWordPress LWS Affiliation plugin <= 2.2.6 - Local File Inclusion vulnerabilityEPSS 0.8%CVE-2024-53490HIGHFavorites-web 1.3.0 favorites-web has a directory traversal vulnerability in SecurityFilter.java.EPSS 0.8%CVE-2024-22204MEDIUMWhoogle Search Limited File Write vulnerabilityEPSS 0.8%CVE-2025-7643CRITICALAttachment Manager <= 2.1.2 - Unauthenticated Arbitrary File DeletionEPSS 0.8%CVE-2026-54612HIGHVvveb: Authenticated editor path traversal to PHP file write/RCE via data-v-save-globalEPSS 0.8%CVE-2026-14490HIGHDemi <= 0.0.6 - Unauthenticated Arbitrary Directory Deletion via demi_restore_step AJAX actionEPSS 0.8%CVE-2024-8438HIGHPath Traversal in modelscope/agentscopeEPSS 0.8%CVE-2026-62801MEDIUMMicrosoft PowerShell Security Feature Bypass VulnerabilityEPSS 0.8%CVE-2024-24749HIGHClasspath resource disclosure in GWC Web Resource API on Windows / TomcatEPSS 0.8%CVE-2025-8021HIGHAll versions of the package files-bucket-server are vulnerable to Directory Traversal where an attacker can traverse the file system and accEPSS 0.8%CVE-2026-53457MEDIUMBlueprint Studio terminal command working directory not bounded to config directoryEPSS 0.8%