Fallos del tipo CWE-36

131 resultados

Travessia de diretório via caminho absoluto não validado

A aplicação recebe um caminho de arquivo do usuário e o coloca dentro de um diretório restrito, mas não valida se o caminho é absoluto (começando com /) ou contém sequências que escapam dessa restrição. Um atacante fornece um caminho como /etc/passwd e consegue acessar qualquer lugar do sistema de arquivos, não apenas o diretório pretendido.

Ejemplo

Uma API recebe ?arquivo=../../etc/passwd ou arquivo=/etc/shadow e tenta salvar em /uploads/arquivo, mas não neutraliza o caminho absoluto ou as sequências de escape. O arquivo é acessado fora da pasta segura. CVEs reais envolvem plataformas de compartilhamento de arquivos e serviços web que confiam na entrada do usuário sem sanitização.

Cómo mitigar

Valide e normalize todo caminho recebido: rejeite caminhos absolutos (com /), remova ../ e qualquer sequência de escape, e confirme que o caminho final fica dentro do diretório autorizado. Use funções seguras de manipulação de caminhos da linguagem (realpath, Path.resolve, etc.) e compare o resultado com o prefixo permitido.

CVE-2024-20401CRITICALA vulnerability in the content scanning and message filtering features of Cisco Secure Email Gateway could allow an unauthenticated, remote EPSS 2.3%CVE-2023-2765MEDIUMWeaver OA downfile.php absolute path traversalEPSS 2.2%CVE-2024-6250HIGHAbsolute Path Traversal in parisneo/lollms-webuiEPSS 1.9%CVE-2025-53392MEDIUMIn Netgate pfSense CE 2.8.0, the "WebCfg - Diagnostics: Command" privilege allows reading arbitrary files via diag_command.php dlPath directEPSS 1.8%CVE-2024-47883CRITICALButterfly has path/URL confusion in resource handling leading to multiple weaknessesEPSS 1.6%CVE-2023-34135Path Traversal vulnerability in SonicWall GMS and Analytics allows a remote authenticated attacker to read arbitrary files from the underlyiEPSS 1.6%CVE-2017-7929An Absolute Path Traversal issue was discovered in Advantech WebAccess Version 8.1 and prior. The absolute path traversal vulnerability has EPSS 1.5%CVE-2021-1617MEDIUMCisco Intersight Virtual Appliance VulnerabilitiesEPSS 1.5%CVE-2022-20791MEDIUMCisco Unified Communications Products Arbitrary File Read VulnerabilityEPSS 1.4%CVE-2022-1554MEDIUMPath Traversal due to `send_file` call in clinical-genomics/scoutEPSS 1.3%CVE-2021-32506MEDIUMQSAN Storage Manager - Absolute Path Traversal via GetImage functionEPSS 1.3%CVE-2021-32507MEDIUMQSAN Storage Manager - Absolute Path Traversal via FileDownload functionEPSS 1.3%CVE-2021-30173MEDIUMJun-He Technology Ltd. Quan-Fang-Wei-Tong-Xun system - Local File InclusionEPSS 1.2%CVE-2024-2362CRITICALPath Traversal in parisneo/lollms-webuiEPSS 1.1%CVE-2022-24877CRITICALImproper path handling in kustomization files allows path traversalEPSS 1.1%CVE-2024-10047MEDIUMDirectory Listing Vulnerability in parisneo/lollms-webuiEPSS 1.0%CVE-2024-8501HIGHArbitrary File Download in modelscope/agentscopeEPSS 1.0%CVE-2022-20958HIGHA vulnerability in the web-based management interface of Cisco BroadWorks CommPilot application could allow an unauthenticated, remote attacEPSS 0.9%CVE-2025-9518HIGHatec Debug <= 1.2.22 - Authenticated (Administrator+) Arbitrary File DeletionEPSS 0.9%CVE-2023-4172MEDIUMChengdu Flash Flood Disaster Monitoring and Warning System FileHandler.ashx absolute path traversalEPSS 0.9%