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-2022-31217HIGHDrive Composer Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2022-31216HIGHDrive Composer Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2023-23558MEDIUMIn Eternal Terminal 6.2.1, TelemetryService uses fixed paths in /tmp. For example, a local attacker can create /tmp/.sentry-native-etserver EPSS 0.3%CVE-2023-52091HIGHAn anti-spyware engine link following vulnerability in Trend Micro Apex One could allow a local attacker to escalate privileges on affected EPSS 0.3%CVE-2023-52090HIGHA security agent link following vulnerability in Trend Micro Apex One could allow a local attacker to escalate privileges on affected instalEPSS 0.3%CVE-2023-52094HIGHAn updater link following vulnerability in the Trend Micro Apex One agent could allow a local attacker to abuse the updater to delete an arbEPSS 0.3%CVE-2023-52092HIGHA security agent link following vulnerability in Trend Micro Apex One could allow a local attacker to escalate privileges on affected instalEPSS 0.3%CVE-2023-52338HIGHA link following vulnerability in the Trend Micro Deep Security 20.0 and Trend Micro Cloud One - Endpoint and Workload Security Agent could EPSS 0.3%CVE-2025-58373MEDIUMRoo Code: Symlink-bypass of .rooignore can lead to unintended file disclosureEPSS 0.3%CVE-2026-69771MEDIUMWindows Container Manager Service Security Feature Bypass VulnerabilityEPSS 0.3%CVE-2024-7249HIGHComodo Firewall Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2021-31843HIGHImproper access control vulnerability in McAfee ENS for WindowsEPSS 0.3%CVE-2026-32212MEDIUMUniversal Plug and Play (upnp.dll) Information Disclosure VulnerabilityEPSS 0.3%CVE-2025-34194HIGHVasion Print (formerly PrinterLogic) Local Privilege Escalation via Insecure Temporary File HandlingEPSS 0.3%CVE-2020-7282HIGHPrivilege Escalation vulnerability in McAfee Total Protection (MTP)EPSS 0.3%CVE-2024-7228MEDIUMAvast Free Antivirus Link Following Denial-of-Service VulnerabilityEPSS 0.3%CVE-2024-12216HIGHArbitrary File Write via TarSlip in dmlc/gluon-cvEPSS 0.3%CVE-2024-7235MEDIUMAVG AntiVirus Free Link Following Denial-of-Service VulnerabilityEPSS 0.3%CVE-2021-20197MEDIUMThere is an open race window when writing output in the following utilities in GNU binutils version 2.35 and earlier:ar, objcopy, strip, ranEPSS 0.3%CVE-2022-31219HIGHDrive Composer Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%