Weaknesses of type CWE-23

509 results

Traversal de diretório via construção insegura de caminhos

A aplicação usa entrada do usuário para montar um caminho de arquivo dentro de um diretório restrito, mas não neutraliza sequências como '..' que permitem navegar para fora desse limite. Um atacante consegue ler ou manipular arquivos fora da área permitida ao injetar '../' na entrada.

Example

Um sistema de download permite acesso a arquivos dentro de '/uploads/' passando o nome via parâmetro. Se o código faz `abrir('/uploads/' + nome_arquivo)` sem validar, um atacante passa `../../../etc/passwd` e consegue ler arquivos do sistema.

How to mitigate

Valide e normalize caminhos usando funções de sistema (ex: `realpath()` em PHP/Linux, `Path.GetFullPath()` em .NET), rejeitando qualquer caminho que escape do diretório raiz permitido. Alternativa: use uma lista branca de nomes de arquivo ou mapeie entrada para IDs internos, nunca concatene entrada diretamente em caminhos.

CVE-2024-11309HIGHTRCore DVC - Arbitrary File Read through Path TraversalEPSS 0.7%CVE-2024-11310HIGHTRCore DVC - Arbitrary File Read through Path TraversalEPSS 0.7%CVE-2021-4459MEDIUMSMA: Directory Traversal in Sunny Boy <3.10.27.REPSS 0.7%CVE-2022-23531MEDIUMArbitrary file write when scanning a specially-crafted local PyPI packageEPSS 0.7%CVE-2024-22421HIGHPotential authentication and CSRF tokens leak in JupyterLabEPSS 0.7%CVE-2026-14476HIGHSssd: sssd: gpo cache path traversal via unsanitized gpcfilesyspath allows kerberos authentication bypassEPSS 0.7%CVE-2026-66897CRITICALInstance template path traversal allows arbitrary host file write as rootEPSS 0.7%CVE-2024-9922HIGHTEAMPLUS TECHNOLOGY Team+ - Arbitrary File Read through Path TraversalEPSS 0.7%CVE-2024-9983HIGHRagic Enterprise Cloud Database - Arbitrary File Read through Path TraversalEPSS 0.7%CVE-2024-13791MEDIUMBit Assist <= 1.5.2 - Path Traversal to Authenticated (Administrator+) Arbitrary File Read via downloadResponseFile FunctionEPSS 0.7%CVE-2026-18907HIGHPathTravelsal Vulnerability in com.talpa.hibrowserEPSS 0.7%CVE-2025-66737MEDIUMYealink T21P_E2 Phone 52.84.0.15 is vulnerable to Directory Traversal. A remote normal privileged attacker can read arbitrary files via a crEPSS 0.7%CVE-2023-45858HIGHA directory traversal was identified in Paessler PRTG before 23.4.88.1429 that made it possible to read local files.EPSS 0.7%CVE-2026-1022HIGHGotac|Statistics Database System - Arbitrary File ReadEPSS 0.7%CVE-2022-2106LOWElcomplus SmartICS Path TraversalEPSS 0.7%CVE-2024-43614MEDIUMMicrosoft Defender for Endpoint for Linux Spoofing VulnerabilityEPSS 0.6%CVE-2023-23391MEDIUMOffice for Android Spoofing VulnerabilityEPSS 0.6%CVE-2025-23410CRITICALGMOD Apollo Relative Path TraversalEPSS 0.6%CVE-2024-47637HIGHWordPress LiteSpeed Cache plugin <= 6.4.1 - Path Traversal vulnerabilityEPSS 0.6%CVE-2022-42474MEDIUMA relative path traversal vulnerability [CWE-23] in Fortinet FortiOS version 7.2.0 through 7.2.3, version 7.0.0 through 7.0.9 and before 6.4EPSS 0.6%