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-69289HIGHWindows Setup Files Cleanup Elevation of Privilege VulnerabilityEPSS 0.4%CVE-2025-32817MEDIUMA Improper Link Resolution vulnerability (CWE-59) in the SonicWall Connect Tunnel Windows (32 and 64 bit) client, this results in unauthorizEPSS 0.4%CVE-2026-42574HIGHapko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build rootEPSS 0.4%CVE-2021-44730HIGHsnapd could be made to escalate privileges and run programs as administratorEPSS 0.4%CVE-2024-7234HIGHAVG AntiVirus Free AVGSvc Link Following Local Privilege Escalation VulnerabilityEPSS 0.4%CVE-2024-7227HIGHAvast Free Antivirus AvastSvc Link Following Local Privilege Escalation VulnerabilityEPSS 0.4%CVE-2025-15314MEDIUMTanium addressed an arbitrary file deletion vulnerability in end-user-cx.EPSS 0.4%CVE-2020-3237MEDIUMCisco IOx Application Framework Arbitrary File Overwrite VulnerabilityEPSS 0.4%CVE-2026-59311MEDIUMFixed predictable /tmp/ziptransformer work directory enables symlink pre-creationEPSS 0.4%CVE-2026-35025HIGHProFTPD ACL Bypass via /proc/self/root Path Prefix in RNFREPSS 0.3%CVE-2026-24884HIGHCompressing Vulnerable to Arbitrary File Write via Symlink ExtractionEPSS 0.3%CVE-2026-50163HIGHoras-go: Hardlink entry with relative Linkname escapes extract dir via process CWD resolution in `oras-go` tar extractionEPSS 0.3%CVE-2013-0261HIGHPackstack: packstack: arbitrary file overwrite via symlink attackEPSS 0.3%CVE-2024-5742MEDIUMNano: running `chmod` and `chown` on the filename allows malicious user to replace the emergency file with a malicious symlink to a root-owned fileEPSS 0.3%CVE-2025-59241HIGHWindows Health and Optimized Experiences Elevation of Privilege VulnerabilityEPSS 0.3%CVE-2024-7230HIGHAvast Cleanup Premium Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2024-7229HIGHAvast Cleanup Premium Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2020-6015Check Point Endpoint Security for Windows before E84.10 can reach denial of service during clean install of the client which will prevent thEPSS 0.3%CVE-2026-19008MEDIUMmf-yang openclaw-cn apply_patch Tool sandbox-paths.ts assertNoSymlinkEscape link followingEPSS 0.3%CVE-2026-70622HIGHtar-rs 0.4.11 - 0.4.46 Symlink Escape via append_dir_all()EPSS 0.3%