Weaknesses of type CWE-22

6,040 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-76737LOWAuthenticated Local Path Traversal Vulnerability Leads to Denial-of-Service in HPE Networking Instant OnEPSS 0.1%CVE-2023-35670HIGHIn computeValuesFromData of FileUtils.java, there is a possible way to insert files to other apps' external private directories due to a patEPSS 0.1%CVE-2023-21093HIGHIn extractRelativePath of FileUtils.java, there is a possible way to access files in a directory belonging to other applications due to a paEPSS 0.1%CVE-2025-48550MEDIUMIn testGrantSlicePermission of SliceManagerTest.java, there is a possible permanent denial of service due to a path traversal error. This coEPSS 0.1%CVE-2024-47027HIGHIn sm_mem_compat_get_vmm_obj of lib/sm/shared_mem.c, there is a possible arbitrary physical memory access due to improper input validation. EPSS 0.1%CVE-2025-48636HIGHIn openFile of BugreportContentProvider.java, there is a possible way to read and write unauthorized files due to a path traversal error. ThEPSS 0.1%CVE-2026-102252MEDIUMPath Traversal in VMDK Extractor in OSV-SCALIBREPSS 0.1%CVE-2025-9142HIGHLocal privilege escalation in Harmony SASE Windows AgentEPSS 0.1%CVE-2026-106559MEDIUMBackstage: Improper input validation in Confluence to Markdown scaffolder moduleEPSS —CVE-2026-5049MEDIUMA path traversal vulnerability affects the The Zone Alias Import flow feature in Brocade SANnav before 3.0.0a. A local authenticated attackeEPSS —CVE-2026-102257HIGHA Zip Slip vulnerability in the in the SMA1000 Appliance Management Console (AMC) interface allows an attacker to extract files outside the EPSS —CVE-2026-101886MEDIUMCisco Jabber for Android Path Traversal via Shared Content URIEPSS —CVE-2026-106557HIGHBackstage: Improper input validation in TechDocs Markdown extension configurationEPSS —CVE-2026-103435HIGHArbitrary File Write via Write-Time Symlink Following (TOCTOU) in Claude CodeEPSS —CVE-2026-105816HIGHVault Vulnerable to Arbitrary Code Execution via Plugin Catalog Entries Restored From Raft SnapshotsEPSS —CVE-2026-42532MEDIUMA path traversal vulnerability exists in the EmailSheet extract_parts functionality of VisiData (version(s): dev (commit 38b21f78)). A speciEPSS —CVE-2026-94580MEDIUMAn arbitrary file and directory deletion vulnerability exists in the REST API management interface handling USB storage operations on BrocadEPSS —CVE-2026-41958MEDIUMA path traversal vulnerability exists in the unzip_http RemoteZipFile extract functionality of VisiData (version(s): dev (commit 38b21f78)).EPSS —CVE-2026-105820MEDIUMVault ACL Policy Cache Vulnerable to Cross-Namespace Policy ResolutionEPSS —CVE-2026-106560HIGHBackstage: Improper repository path validation in a Scaffolder backend moduleEPSS —