Weaknesses of type CWE-29

64 results

Travessia de Diretório via Prefixo '..filename'

Quando uma aplicação constrói caminhos de arquivo concatenando entrada do usuário diretamente, sem validação, um atacante pode usar sequências como '..filename' para escapar do diretório intendido e acessar arquivos fora da árvore autorizada. O perigo está em expor ou modificar arquivos sensíveis do sistema.

Example

Uma função que serve downloads recebe 'file=../../../etc/passwd' como parâmetro. Se o código não validar ou normalizar o caminho antes de abrir o arquivo, o atacante consegue ler arquivos críticos do servidor que não deveriam ser acessíveis publicamente.

How to mitigate

Valide e normalize todos os caminhos de arquivo usando funções específicas (ex: `realpath()` em PHP, `Path.GetFullPath()` em C#), implemente listas brancas de nomes permitidos, e confine acessos a um diretório raiz usando chroot ou sandbox. Nunca confie em entrada do usuário para montagem de caminhos.

CVE-2024-8859HIGHPath Traversal in mlflow/mlflowEPSS 2.7%CVE-2023-6975CRITICALPath Traversal: '\..\filename'EPSS 2.0%CVE-2024-2360CRITICALPath Traversal leading to Remote Code Execution in parisneo/lollms-webuiEPSS 1.9%CVE-2024-11170HIGHPath Traversal in danny-avila/librechatEPSS 1.8%CVE-2024-12389HIGHPath Traversal in binary-husky/gpt_academicEPSS 1.7%CVE-2024-2624CRITICALPath Traversal and Arbitrary File Upload Vulnerability in parisneo/lollms-webuiEPSS 1.4%CVE-2024-5443CRITICALRemote Code Execution via Path Traversal in parisneo/lollmsEPSS 1.2%CVE-2024-21542HIGHVersions of the package luigi before 3.6.0 are vulnerable to Arbitrary File Write via Archive Extraction (Zip Slip) due to improper destinatEPSS 1.1%CVE-2024-2358CRITICALPath Traversal leading to Remote Code Execution in parisneo/lollms-webuiEPSS 1.1%CVE-2024-5211CRITICALPath Traversal to Arbitrary File Read/Delete/Overwrite, DoS Attack, and Admin Account Takeover in mintplex-labs/anything-llmEPSS 1.0%CVE-2024-8537CRITICALPath Traversal in modelscope/agentscopeEPSS 1.0%CVE-2023-6130HIGHPath Traversal: '\..\filename' in salesagility/suitecrmEPSS 1.0%CVE-2024-7957CRITICALArbitrary File Overwrite in danswer-ai/danswerEPSS 0.9%CVE-2024-2914HIGHTarSlip Vulnerability in deepjavalibrary/djlEPSS 0.9%CVE-2024-8248HIGHPath Traversal in mintplex-labs/anything-llmEPSS 0.9%CVE-2024-5926CRITICALPath Traversal in stitionai/devikaEPSS 0.9%CVE-2023-2984MEDIUMPath Traversal: '\..\filename' in pimcore/pimcoreEPSS 0.9%CVE-2024-3435HIGHPath Traversal in parisneo/lollms-webuiEPSS 0.8%CVE-2024-2356CRITICALRemote Code Execution due to LFI in '/reinstall_extension' in parisneo/lollms-webuiEPSS 0.8%CVE-2026-5627CRITICALPath Traversal in mintplex-labs/anything-llmEPSS 0.8%