Weaknesses of type CWE-22

5,849 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-23314HIGHAn arbitrary file upload vulnerability in the /api/upload component of zdir v3.2.0 allows attackers to execute arbitrary code via a crafted EPSS 1.2%CVE-2026-42780MEDIUMBIG-IP SSL Orchestrator vulnerabilityEPSS 1.2%CVE-2025-6801HIGHMarvell QConvergeConsole saveNICParamsToFile Directory Traversal Arbitrary File Write VulnerabilityEPSS 1.2%CVE-2025-6806HIGHMarvell QConvergeConsole decryptFile Directory Traversal Arbitrary File Write VulnerabilityEPSS 1.2%CVE-2023-32767HIGHThe web interface of Symcon IP-Symcon before 6.3 (i.e., before 2023-05-12) allows a remote attacker to read sensitive files via .. directoryEPSS 1.2%CVE-2023-30380HIGHAn issue in the component /dialog/select_media.php of DedeCMS v5.7.107 allows attackers to execute a directory traversal.EPSS 1.2%CVE-2023-44256MEDIUMA server-side request forgery vulnerability [CWE-918] in Fortinet FortiAnalyzer version 7.4.0, version 7.2.0 through 7.2.3 and before 7.0.8 EPSS 1.2%CVE-2026-22739HIGHSpring Cloud Config Profile Substitution Can Allow Unintended Access To Files And Enable SSRF AttacksEPSS 1.2%CVE-2026-9181CRITICALDirectory Traversal in ArcGIS ServerEPSS 1.2%CVE-2026-15979HIGHContent Egg <= 11.3.0 - Authenticated (Author+) Arbitrary File DeletionEPSS 1.2%CVE-2023-3813HIGHJupiter X Core <= 4.6.6 - Unauthenticated Arbitrary File DownloadEPSS 1.2%CVE-2017-0930—augustine node module suffers from a Path Traversal vulnerability due to lack of validation of url, which allows a malicious user to read coEPSS 1.2%CVE-2021-33726—A vulnerability has been identified in SINEC NMS (All versions < V1.0 SP2 Update 1). The affected system allows to download arbitrary files EPSS 1.2%CVE-2026-76431MEDIUMCisco Identity Services Engine Arbitrary File Deletion VulnerabilityEPSS 1.2%CVE-2021-33555HIGHA vulnerability may allow remote attackers to read arbitrary files on the server of the WirelessHART-GatewayEPSS 1.2%CVE-2026-76432MEDIUMCisco Identity Services Engine Arbitrary File Write VulnerabilityEPSS 1.2%CVE-2025-58751LOWVite middleware may serve files starting with the same name with the public directoryEPSS 1.2%CVE-2024-1974HIGHHT Mega – Absolute Addons For Elementor <= 2.4.5 - Authenticated (Contributor+) Directory TraversalEPSS 1.2%CVE-2023-36822MEDIUMUptime Kuma authenticated path traversal via plugin repository name may lead to unavailability or data lossEPSS 1.2%CVE-2026-34070HIGHLangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functionsEPSS 1.2%