Weaknesses of type CWE-22

5,969 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-2025-33037HIGHQsync CentralEPSS 0.5%CVE-2025-33038HIGHQsync CentralEPSS 0.5%CVE-2025-33033HIGHQsync CentralEPSS 0.5%CVE-2025-30270MEDIUMQTS, QuTS heroEPSS 0.5%CVE-2026-39844MEDIUMNiceGUI has a Path Traversal in NiceGUI Upload Filename on Windows via Backslash Bypass of PurePosixPath SanitizationEPSS 0.5%CVE-2025-6589LOWWith MultiBlocks enabled and a user who is suppressed via a MultiBlock, a user without 'hideuser' can see the hidden username in the BlockListEPSS 0.5%CVE-2026-76842HIGHMercado Pago Node.js SDK through 3.4.0 Path Injection via Unencoded Identifiers in Payment ClientsEPSS 0.5%CVE-2026-81837MEDIUMRooCodeInc Roo-Code ApplyPatchTool ApplyPatchTool.ts path.resolve path traversalEPSS 0.5%CVE-2024-37372LOWThe Permission Model assumes that any path starting with two backslashes \ has a four-character prefix that can be ignored, which is not alwEPSS 0.5%CVE-2022-3976MEDIUMMZ Automation libiec61850 MMS File Services mms_client_files.c path traversalEPSS 0.5%CVE-2024-38746HIGHWordPress MakeStories (for Google Web Stories) plugin <= 3.0.3 - Arbitrary File Download and SSRF vulnerabilityEPSS 0.5%CVE-2025-66251HIGHUnauthenticated Path Traversal with Arbitrary File DeletionEPSS 0.5%CVE-2024-5433MEDIUMPath Traversal in Campbell Scientific CSI Web Server and RTMCEPSS 0.5%CVE-2026-17622MEDIUMLangflow OSS is affected by arbitrary file read due to path traversal vulnerabilities in file and knowledge base componentsEPSS 0.5%CVE-2026-66397HIGHphpMyFAQ before 4.1.6 Path Traversal via category image deletionEPSS 0.5%CVE-2023-39407—The Watchkit has a risk of unauthorized file access.Successful exploitation of this vulnerability may affect confidentiality and integrity.EPSS 0.5%CVE-2026-19302MEDIUMLangflow is vulnerable to arbitrary local file read due to path traversal in ChatInput, bundle FileInput, and GitExtractor componentsEPSS 0.5%CVE-2026-42598MEDIUMPode: Directory Traversal is possible on Static RoutesEPSS 0.5%CVE-2026-65878HIGHJoomla Extension - joomshaper.com - Authenticated arbitrary file delete in SP Page Builder < 6.7.1EPSS 0.5%CVE-2026-16088MEDIUMhalo-dev halo Files Backup Endpoint MigrationEndpoint.java download path traversalEPSS 0.5%