Weaknesses of type CWE-22

6,012 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-2023-52953MEDIUMPath traversal vulnerability in the Medialibrary module Impact: Successful exploitation of this vulnerability will affect integrity and confEPSS 0.3%CVE-2026-103254HIGHn8n before 1.123.80, 2.39.6, and 2.40.1 Path Traversal via Resume URL GenerationEPSS 0.3%CVE-2024-45601HIGHLocal file Inclusion via static file serving functionality in MesopEPSS 0.3%CVE-2026-82094HIGHDataStage on Cloud Pak for Data has several vulnerabilitiesEPSS 0.3%CVE-2026-19693HIGHextract-zip arbitrary file write outside the destination directory via a symlink at the final path componentEPSS 0.3%CVE-2023-52623HIGHSUNRPC: Fix a suspicious RCU usage warningEPSS 0.3%CVE-2025-24330MEDIUMOAM service path traversal issue caused by a crafted SOAP message PlanId field within the RAN management networkEPSS 0.3%CVE-2025-22479LOWDell Storage Center - Dell Storage Manager, version(s) 20.0.21, contain(s) an Improper Limitation of a Pathname to a Restricted Directory ('EPSS 0.3%CVE-2026-18515MEDIUMIBM i is Affected By Multiple Vulnerabilities in Navigator for i and Digital Certificate Manager for i.EPSS 0.3%CVE-2026-92945LOWvm2 before 3.11.7 Module Allowlist Bypass via Prefix MatchingEPSS 0.3%CVE-2024-47273MEDIUMAn improper limitation of a pathname to a restricted directory ('Path Traversal') vulnerability in Backup Task functionality in Synology HypEPSS 0.3%CVE-2026-24131MEDIUMpnpm has Path Traversal via arbitrary file permission modificationEPSS 0.3%CVE-2025-42894MEDIUMPath Traversal vulnerability in SAP Business ConnectorEPSS 0.3%CVE-2025-54559LOWAn issue was found in the Application Server of Desktop Alert PingAlert version 6.1.0.11 to 6.1.1.2 which allows remote Path Traversal for lEPSS 0.3%CVE-2026-100549MEDIUMOpenClaw before 2026.8.1 Path Traversal via QQBot voice filenamesEPSS 0.3%CVE-2026-20613HIGHThe ArchiveReader.extractContents() function used by cctl image load and container image load performs no pathname validation before extractEPSS 0.3%CVE-2025-0694MEDIUMCODESYS Control V3 removable media path traversalEPSS 0.3%CVE-2026-19016MEDIUMAuthorization bypass for session deletion in the transaction APIEPSS 0.3%CVE-2026-20685MEDIUMAn attacker in a privileged network position may be able to leak sensitive information. A path handling issue was addressed with improved vaEPSS 0.3%CVE-2026-20688CRITICALA path handling issue was addressed with improved validation. This issue is fixed in iOS 26.4 and iPadOS 26.4, macOS Sequoia 15.7.5, macOS SEPSS 0.3%