Fallos del tipo CWE-59

823 resultados

Seguimento de links simbólicos (symlink race condition)

Ocorre quando uma aplicação opera sobre um arquivo sem validar se ele é um link simbólico, permitindo que um atacante redirecione a operação para um arquivo arbitrário no sistema. O código assume que está acessando um arquivo legítimo, mas na verdade está sendo manipulado para acessar (ler, escrever ou deletar) qualquer outro arquivo que a aplicação tenha permissão.

Ejemplo

Um script de limpeza temporária com privilégios de root deleta arquivos em /tmp/cache/ sem verificar se são links simbólicos. Um atacante cria um link /tmp/cache/dados → /etc/passwd e consegue deletar arquivos críticos do sistema. Ou um backup toca em /tmp/file, que é na verdade um symlink para /home/usuario/.ssh/id_rsa, expondo a chave privada.

Cómo mitigar

Use funções seguras que não seguem symlinks (como `lstat()` em vez de `stat()` no Linux), valide se o caminho é um link antes de operar, use `O_NOFOLLOW` em `open()`, ou execute operações em diretórios com permissões restritivas (apenas proprietário pode criar arquivos). Em ambientes críticos, considere usar containers ou jails.

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-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-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-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-2020-7282HIGHPrivilege Escalation vulnerability in McAfee Total Protection (MTP)EPSS 0.3%CVE-2025-34194HIGHVasion Print (formerly PrinterLogic) Local Privilege Escalation via Insecure Temporary File HandlingEPSS 0.3%CVE-2026-32212MEDIUMUniversal Plug and Play (upnp.dll) Information Disclosure VulnerabilityEPSS 0.3%CVE-2024-12216HIGHArbitrary File Write via TarSlip in dmlc/gluon-cvEPSS 0.3%CVE-2024-7228MEDIUMAvast Free Antivirus Link Following Denial-of-Service VulnerabilityEPSS 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%