Fallos del tipo CWE-59

823 resultados

Seguimento de links simbólicos (symlink race condition)

Ocorre quando uma aplicação opera sobre um arquivo sem validar se ele é um link simbólico, permitindo que um atacante redirecione a operação para um arquivo arbitrário no sistema. O código assume que está acessando um arquivo legítimo, mas na verdade está sendo manipulado para acessar (ler, escrever ou deletar) qualquer outro arquivo que a aplicação tenha permissão.

Ejemplo

Um script de limpeza temporária com privilégios de root deleta arquivos em /tmp/cache/ sem verificar se são links simbólicos. Um atacante cria um link /tmp/cache/dados → /etc/passwd e consegue deletar arquivos críticos do sistema. Ou um backup toca em /tmp/file, que é na verdade um symlink para /home/usuario/.ssh/id_rsa, expondo a chave privada.

Cómo mitigar

Use funções seguras que não seguem symlinks (como `lstat()` em vez de `stat()` no Linux), valide se o caminho é um link antes de operar, use `O_NOFOLLOW` em `open()`, ou execute operações em diretórios com permissões restritivas (apenas proprietário pode criar arquivos). Em ambientes críticos, considere usar containers ou jails.

CVE-2024-35253MEDIUMMicrosoft Azure File Sync Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2026-7374CRITICALKubevirt: kubevirt virt-handler: privilege escalation and node compromise via symlink following vulnerabilityEPSS 0.7%CVE-2025-21419HIGHWindows Setup Files Cleanup Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2026-43998HIGHvm2: NodeVM require.root bypass via symlink traversal allows sandbox escapeEPSS 0.7%CVE-2024-35261HIGHAzure Network Watcher VM Extension Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2025-21188MEDIUMAzure Network Watcher VM Extension Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2023-22490MEDIUMGit vulnerable to local clone-based data exfiltration with non-local transportsEPSS 0.7%CVE-2026-67368HIGHMicrosoft SQL Server Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2025-0377HIGHHashiCorp go-slug Vulnerable to Zip Slip AttackEPSS 0.7%CVE-2026-40861MEDIUMApache Airflow: Arbitrary File Read via Log Symlink following in FileTaskHandlerEPSS 0.7%CVE-2024-21432HIGHWindows Update Stack Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2023-50226HIGHParallels Desktop Updater Link Following Local Privilege Escalation VulnerabilityEPSS 0.7%CVE-2023-36046HIGHWindows Authentication Denial of Service VulnerabilityEPSS 0.7%CVE-2025-21322HIGHMicrosoft PC Manager Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2019-3698MEDIUMnagios cron job allows privilege escalation from user nagios to rootEPSS 0.7%CVE-2023-25152HIGHSymbolic Link (Symlink) Following in github.com/pterodactyl/wingsEPSS 0.7%CVE-2023-28222HIGHWindows Kernel Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2023-36705HIGHWindows Installer Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2026-85731HIGHoras-go: Arbitrary file write outside file.Store root via symlink-chain bypass in tar extraction (pushDir)EPSS 0.7%CVE-2025-21347MEDIUMWindows Deployment Services Denial of Service VulnerabilityEPSS 0.7%