Weaknesses of type CWE-59

823 results

Seguimento inseguro de links simbólicos

Ocorre quando uma aplicação segue um link simbólico (symlink) sem validar se o destino é legítimo, permitindo que um atacante redirecione operações de arquivo para locais não autorizados. Um processo com privilégio elevado que acessa `/tmp/arquivo` pode ser redirecionado por um symlink malicioso para ler ou modificar `/etc/passwd`, por exemplo.

Example

Um script root copia logs da aplicação de `/tmp/app.log` para `/var/log/backup.log`. Um atacante cria um symlink `/tmp/app.log` → `/etc/shadow` e aguarda a execução do script; o arquivo sensível é então copiado e exposto.

How to mitigate

Use APIs seguras como `O_NOFOLLOW` (em open/openat) ou `lstat()` para detectar symlinks antes de operar. Valide o proprietário e permissões de arquivos alvo, e armazene arquivos temporários em diretórios privados (não `/tmp`), com umask restritivo.

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-36046HIGHWindows Authentication Denial of Service VulnerabilityEPSS 0.7%CVE-2023-50226HIGHParallels Desktop Updater Link Following Local Privilege Escalation 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%