Weaknesses of type CWE-22

5,863 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-0454HIGHOrangeScrum version 2.0.11 allows an authenticated external attacker to delete arbitrary local files from the server. This is possible becauEPSS 1.0%CVE-2022-25848HIGHDirectory TraversalEPSS 1.0%CVE-2026-86538HIGHknowns before 0.30.0 Path Traversal via templateFile parameterEPSS 1.0%CVE-2023-4152HIGHFrauscher FDS101 for FAdC/FAdCi path traversal vulnerabilityEPSS 1.0%CVE-2023-2880HIGHFrauscher Sensortechnik Diagnostic System FDS001 for FAdC/FAdCi Path Traversal vulnerabilityEPSS 1.0%CVE-2021-37500HIGHDirectory traversal vulnerability in Reprise License Manager (RLM) web interface before 14.2BL4 in the diagnostics function that allows RLM EPSS 1.0%CVE-2025-6925MEDIUMDromara RuoYi-Vue-Plus Mail MailController.java path traversalEPSS 1.0%CVE-2026-39365MEDIUMVite has a Path Traversal in Optimized Deps `.map` HandlingEPSS 1.0%CVE-2023-27500CRITICALDirectory Traversal vulnerability in SAP NetWeaver AS for ABAP and ABAP PlatformEPSS 1.0%CVE-2023-27269CRITICALDirectory Traversal vulnerability in SAP NetWeaver AS for ABAP and ABAP PlatformEPSS 1.0%CVE-2025-1106MEDIUMCmsEasy database_admin.php restore_action path traversalEPSS 1.0%CVE-2024-1511CRITICALPath Traversal Vulnerability in parisneo/lollms-webuiEPSS 1.0%CVE-2023-5505MEDIUMBackWPup <= 4.0.1 - Authenticated (Administrator+) Directory TraversalEPSS 1.0%CVE-2023-48383HIGHNetVision Information airPASS - Path TraversalEPSS 1.0%CVE-2023-41344HIGHNCSIST ManageEngine MDM - Path TraversalEPSS 1.0%CVE-2020-7268MEDIUMMcAfee Email Gateway (MEG) - Path Traversal vulnerabilityEPSS 1.0%CVE-2026-8757MEDIUMadenhq hive Delete Request routes_sessions.py _read_events_tail path traversalEPSS 1.0%CVE-2026-40521HIGHFrontAccounting < 2.4.20 Path Traversal RCE via attachment uploadEPSS 1.0%CVE-2026-22199HIGHVoltronic Power SNMP Web Pro 1.1 Path Traversal via upload.cgiEPSS 1.0%CVE-2024-9669HIGHFile Manager Pro – Filester <= 1.8.5 - Authenticated (Administrator+) Local JavaScript File InclusionEPSS 1.0%