Weaknesses of type CWE-22

5,847 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-34409CRITICALIn Percona Monitoring and Management (PMM) server 2.x before 2.37.1, the authenticate function in auth_server.go does not properly formalizeEPSS 1.3%CVE-2019-19102MEDIUMZip Slip vulnerability in 3rd-Party library in B&R Automation Studio upgrade serviceEPSS 1.3%CVE-2024-54374HIGHWordPress Sogrid plugin <= 1.5.6 - Local File Inclusion vulnerabilityEPSS 1.3%CVE-2024-39332CRITICALWebswing 23.2.2 allows remote attackers to modify client-side JavaScript code to achieve path traversal, likely leading to remote code execuEPSS 1.3%CVE-2021-40358CRITICALA vulnerability has been identified in SIMATIC PCS 7 V8.2 (All versions), SIMATIC PCS 7 V9.0 (All versions < V9.0 SP3 UC04), SIMATIC PCS 7 VEPSS 1.3%CVE-2023-31904HIGHsavysoda Wifi HD Wireless Disk Drive 11 is vulnerable to Local File Inclusion.EPSS 1.3%CVE-2023-23838MEDIUMDirectory traversal and file enumeration vulnerability: Database Performance Analyzer (DPA) 2023.1EPSS 1.3%CVE-2024-40629CRITICALArbitrary File Write in Ansible Playbooks leads to RCE in JumpserverEPSS 1.3%CVE-2024-45178HIGHAn issue was discovered in za-internet C-MOR Video Surveillance 5.2401. Due to improper user input validation, it is possible to download arEPSS 1.3%CVE-2023-46197MEDIUMWordPress Popup by Supsystic plugin <= 1.10.19 - Unauthenticated Subscriber Email Addresses DisclosureEPSS 1.3%CVE-2026-76433MEDIUMCisco Identity Services Engine Information Disclosure VulnerabilityEPSS 1.3%CVE-2024-25693CRITICALPortal for ArcGIS has a directory traversal vulnerability.EPSS 1.3%CVE-2025-0401MEDIUM1902756969 reggie CommonController.java download path traversalEPSS 1.3%CVE-2021-37713HIGHArbitrary File Creation/Overwrite on Windows via insufficient relative path sanitizationEPSS 1.3%CVE-2022-50939HIGHe107 CMS v3.2.1 - Upload Restriction Bypass with Path Traversal File OverrideEPSS 1.3%CVE-2024-23899MEDIUMJenkins Git server Plugin 99.va_0826a_b_cdfa_d and earlier does not disable a feature of its command parser that replaces an '@' character fEPSS 1.3%CVE-2023-27326HIGHParallels Desktop Toolgate Directory Traversal Local Privilege Escalation VulnerabilityEPSS 1.3%CVE-2025-8426CRITICALMarvell QConvergeConsole compressConfigFiles Directory Traversal Information Disclosure and Denial-of-Service VulnerabilityEPSS 1.3%CVE-2026-11442MEDIUMAllegra exportReport Directory Traversal Information Disclosure VulnerabilityEPSS 1.3%CVE-2026-39352HIGHFrappe has an Arbitrary File Read via Path Traversal in render_includeEPSS 1.3%