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-2023-6069CRITICALImproper Link Resolution Before File Access in froxlor/froxlorEPSS 0.8%CVE-2024-35254HIGHAzure Monitor Agent Elevation of Privilege VulnerabilityEPSS 0.8%CVE-2024-26238HIGHMicrosoft PLUGScheduler Scheduled Task Elevation of Privilege VulnerabilityEPSS 0.8%CVE-2024-10986HIGHLocal File Read (LFI) by Tarslip Symlink via arxiv_download() API in binary-husky/gpt_academicEPSS 0.8%CVE-2026-57571CRITICALCrawl4AI arbitrary file write via download filename path traversalEPSS 0.8%CVE-2025-21373HIGHWindows Installer Elevation of Privilege VulnerabilityEPSS 0.8%CVE-2020-8103HIGHLink Resolution Privilege Escalation Vulnerability in Bitdefender Antivirus Free (VA-8604)EPSS 0.8%CVE-2023-21567MEDIUMVisual Studio Denial of Service VulnerabilityEPSS 0.8%CVE-2025-49739HIGHVisual Studio Elevation of Privilege VulnerabilityEPSS 0.8%CVE-2022-45412HIGHWhen resolving a symlink such as <code>file:///proc/self/fd/1</code>, an error message may be produced where the symlink was resolved to a sEPSS 0.8%CVE-2025-21274MEDIUMWindows Event Tracing Denial of Service VulnerabilityEPSS 0.8%CVE-2024-43603MEDIUMVisual Studio Collector Service Denial of Service VulnerabilityEPSS 0.8%CVE-2024-37143CRITICALDell PowerFlex appliance versions prior to IC 46.381.00 and IC 46.376.00, Dell PowerFlex rack versions prior to RCM 3.8.1.0 (for RCM 3.8.x tEPSS 0.8%CVE-2024-44258HIGHThis issue was addressed with improved handling of symlinks. This issue is fixed in iOS 17.7.1 and iPadOS 17.7.1, iOS 18.1 and iPadOS 18.1, EPSS 0.8%CVE-2026-11940HIGHtarfile extraction filter bypass allows escaping the destination directoryEPSS 0.8%CVE-2022-43293MEDIUMWacom Driver 6.3.46-1 for Windows was discovered to contain an arbitrary file write vulnerability via the component \Wacom\Wacom_Tablet.exe.EPSS 0.8%CVE-2026-53486CRITICALdecompress: Archive extraction can create files and links outside the target directoryEPSS 0.7%CVE-2024-29989HIGHAzure Monitor Agent Elevation of Privilege VulnerabilityEPSS 0.7%CVE-2025-26625HIGHGit LFS may write to arbitrary files via crafted symlinksEPSS 0.7%CVE-2025-53109HIGHModel Context Protocol Servers Vulnerable to Path Validation Bypass via Prefix Matching and Symlink HandlingEPSS 0.7%