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-2026-41364HIGHOpenClaw < 2026.3.31 - Arbitrary File Write via Symlink Following in SSH Sandbox Tar UploadEPSS 0.5%CVE-2023-36876HIGHReliability Analysis Metrics Calculation (RacTask) Elevation of Privilege VulnerabilityEPSS 0.5%CVE-2026-24046HIGHBackstage has a Possible Symlink Path Traversal in Scaffolder ActionsEPSS 0.5%CVE-2026-61371HIGHMicrosoft AVML before 0.17.0 could follow a symlink when opening a destination output path on Unix, allowing truncation/overwrite of the symEPSS 0.5%CVE-2020-8015HIGHLocal privilege escalation in exim package from user mail to rootEPSS 0.5%CVE-2026-55168MEDIUMRuntipi: Authenticated arbitrary file write via backup restore symlink plantingEPSS 0.5%CVE-2018-6954HIGHsystemd-tmpfiles in systemd through 237 mishandles symlinks present in non-terminal path components, which allows local users to obtain owneEPSS 0.5%CVE-2020-6012ZoneAlarm Anti-Ransomware before version 1.0.713 copies files for the report from a directory with low privileges. A sophisticated timed attEPSS 0.5%CVE-2023-35353HIGHConnected User Experiences and Telemetry Elevation of Privilege VulnerabilityEPSS 0.5%CVE-2019-3691HIGHLocal privilege escalation from user munge to rootEPSS 0.5%CVE-2019-3697HIGHLocal privilege escalation from user gnump3d to rootEPSS 0.5%CVE-2025-41667HIGHPhoenix Contact: File access due to the replacement of a critical file used by the arp-preinit scriptEPSS 0.5%CVE-2023-32178HIGHVIPRE Antivirus Plus TelFileTransfer Link Following Local Privilege Escalation VulnerabilityEPSS 0.5%CVE-2023-32179HIGHVIPRE Antivirus Plus FPQuarTransfer Link Following Local Privilege Escalation VulnerabilityEPSS 0.5%CVE-2026-9804HIGHKubevirt: kubevirt: vmexport directory symlink escape enables exporter pod file readEPSS 0.5%CVE-2021-35938A symbolic link issue was found in rpm. It occurs when rpm sets the desired permissions and credentials after installing a file. A local unpEPSS 0.5%CVE-2025-41666HIGHPhoenix Contact: File access due to the replacement of a critical file used by the watchdogEPSS 0.5%CVE-2025-41668HIGHPhoenix Contact: File access due to the replacement of a critical file used by the service security-profileEPSS 0.5%CVE-2025-29975HIGHMicrosoft PC Manager Elevation of Privilege VulnerabilityEPSS 0.5%CVE-2023-32175HIGHVIPRE Antivirus Plus Link Following Local Privilege Escalation VulnerabilityEPSS 0.5%