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-2009-1143HIGHAn issue was discovered in open-vm-tools 2009.03.18-154848. Local users can bypass intended access restrictions on mounting shares via a symEPSS 0.3%CVE-2026-40931HIGHComplete Bypass of CVE-2026-24884 Patch via Git-Delivered Symlink Poisoning in compressingEPSS 0.3%CVE-2022-22262HIGHASUS Armoury Crate & Aura Creator Installer之ROG Live Service - Improper Link Resolution Before File AccessEPSS 0.3%CVE-2026-27905HIGHBentoML has an Arbitrary File Write via Symlink Path Traversal in Tar ExtractionEPSS 0.3%CVE-2026-28684MEDIUMpython-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallbackEPSS 0.3%CVE-2025-15541MEDIUMAccess to System Files via SFTP on TP-Link VX800vEPSS 0.3%CVE-2024-9766HIGHWacom Center WTabletServicePro Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2023-53973HIGHZillya Total Security 3.0.2367.0 Local Privilege Escalation via Quarantine ModuleEPSS 0.3%CVE-2022-45440MEDIUMA vulnerability exists in the FTP server of the Zyxel AX7501-B0 firmware prior to V5.17(ABPC.3)C0, which processes symbolic links on externaEPSS 0.2%CVE-2026-44471HIGHgitoxide: Symlink prefix-reuse allows worktree escape during checkoutEPSS 0.2%CVE-2025-11489LOWwonderwhy-er DesktopCommanderMCP filesystem.ts isPathAllowed symlinkEPSS 0.2%CVE-2023-31003HIGHIBM Security Access Manager Container privilege escalationEPSS 0.2%CVE-2023-50197HIGHIntel Driver & Support Assistant Link Following Local Privilege Escalation VulnerabilityEPSS 0.2%CVE-2026-61858MEDIUMImageMagick before 7.1.2-26 Policy Bypass via APNG encoderEPSS 0.2%CVE-2023-1412HIGHLocal Privilege Escalation Vulnerability in WARP's MSI InstallerEPSS 0.2%CVE-2023-47192HIGHAn agent link vulnerability in the Trend Micro Apex One security agent could allow a local attacker to escalate privileges on affected instaEPSS 0.2%CVE-2026-89021MEDIUMMikroTik RouterOS Path Traversal via Container OCI/tar Image ExtractionEPSS 0.2%CVE-2022-0012MEDIUMCortex XDR Agent: Local Arbitrary File Deletion VulnerabilityEPSS 0.2%CVE-2026-27967HIGHSymlink Escape in Agent File ToolsEPSS 0.2%CVE-2026-2627HIGHSoftland FBackup Backup/Restore HID.dll link followingEPSS 0.2%