Weaknesses of type CWE-22

6,562 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-2020-27859HIGHThis vulnerability allows remote attackers to disclose sensitive information on affected installations of NEC ESMPRO Manager 6.42. AuthenticEPSS 2.9%CVE-2025-32820HIGHA vulnerability in SMA100 allows a remote authenticated attacker with SSLVPN user privileges can inject a path traversal sequence to make anEPSS 2.9%CVE-2024-23467CRITICALSolarWinds Access Rights Manager Directory Traversal Remote Code Execution VulnerabilityEPSS 2.9%CVE-2021-21904CRITICALA directory traversal vulnerability exists in the CMA CLI setenv command of Garrett Metal Detectors’ iC Module CMA Version 5.0. An attacker EPSS 2.9%CVE-2026-61560CRITICAL@zereight/mcp-gitlab's unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeoverEPSS 2.9%CVE-2024-31851HIGHA path traversal vulnerability exists in the Java version of CData Sync < 23.4.8843 when running using the embedded Jetty server, which coulEPSS 2.9%CVE-2024-39903HIGHLocal File Inclusion in SolaraEPSS 2.9%CVE-2018-0405—Cisco RV180W Wireless-N Multifunction VPN Router Directory Path Traversal VulnerabilityEPSS 2.9%CVE-2023-40512MEDIUMLG Simple Editor PlayerController getImageByFilename Directory Traversal Information Disclosure VulnerabilityEPSS 2.9%CVE-2023-40513MEDIUMLG Simple Editor UserManageController getImageByFilename Directory Traversal Information Disclosure VulnerabilityEPSS 2.9%CVE-2023-40514MEDIUMLG Simple Editor FileManagerController getImageByFilename Directory Traversal Information Disclosure VulnerabilityEPSS 2.9%CVE-2025-30567HIGHWordPress WP01 plugin <= 2.6.2 - Arbitrary File Download VulnerabilityEPSS 2.9%CVE-2026-9282HIGHW3 Total Cache <= 2.9.4 - Unauthenticated Arbitrary File Read via 'f_array[]' ParameterEPSS 2.9%CVE-2026-91136HIGHDivi Plus <= 2.4.0 - Unauthenticated Arbitrary File Read via 'svg_image' ParameterEPSS 2.9%CVE-2021-27471HIGHRockwell Automation Connected Components Workbench Path TraversalEPSS 2.9%CVE-2023-40493CRITICALLG Simple Editor copySessionFolder Directory Traversal Remote Code Execution VulnerabilityEPSS 2.9%CVE-2024-24999HIGHA Path Traversal vulnerability in web component of Ivanti Avalanche before 6.4.3 allows a remote authenticated attacker to execute arbitraryEPSS 2.9%CVE-2022-23457HIGHPath Traversal in ESAPIEPSS 2.8%CVE-2020-37088HIGHSchool ERP Pro 1.0 - Arbitrary File ReadEPSS 2.8%CVE-2019-5423—Path traversal vulnerability in http-live-simulator npm package version 1.0.5 allows arbitrary path to be accessed on the file system by a rEPSS 2.8%