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-2023-32182MEDIUMA Improper Link Resolution Before File Access ('Link Following') vulnerability in SUSE SUSE Linux Enterprise Desktop 15 SP5 postfix, SUSE SUEPSS 0.3%CVE-2026-39243MEDIUMdecompress before 4.2.2 allows arbitrary hardlink creation during archive extraction, enabling file read disclosure and file corruption. WheEPSS 0.3%CVE-2025-34191HIGHVasion Print (formerly PrinterLogic) Arbitrary File Write as Root via Response Path Symlink FollowEPSS 0.3%CVE-2026-54706MEDIUMOnionShare follows symlinks in shared directories, allowing unintended disclosure of local filesEPSS 0.3%CVE-2021-32547HIGHapport read_file() function could follow maliciously constructed symbolic linksEPSS 0.3%CVE-2025-69429MEDIUMThe ORICO NAS CD3510 (version V1.9.12 and below) contains an Incorrect Symlink Follow vulnerability that could be exploited by attackers to EPSS 0.3%CVE-2025-69430MEDIUMAn Incorrect Symlink Follow vulnerability exists in multiple Yottamaster NAS devices, including DM2 (version equal to or prior to V1.9.12), EPSS 0.3%CVE-2025-69431MEDIUMThe ZSPACE Q2C NAS contains a vulnerability related to incorrect symbolic link following. Attackers can format a USB drive to ext4, create aEPSS 0.3%CVE-2022-4563HIGHFreedom of the Press SecureDrop gpg-agent.conf symlinkEPSS 0.3%CVE-2022-2897HIGHMeasuresoft ScadaPro Server and Client Link FollowingEPSS 0.3%CVE-2022-2145MEDIUMCloudlfare WARP Arbitrary File OverwriteEPSS 0.3%CVE-2022-32905HIGHThis issue was addressed with improved validation of symlinks. This issue is fixed in macOS Ventura 13. Processing a maliciously crafted DMGEPSS 0.3%CVE-2025-43448MEDIUMThis issue was addressed with improved validation of symlinks. This issue is fixed in iOS 18.7.2 and iPadOS 18.7.2, iOS 26.1 and iPadOS 26.1EPSS 0.3%CVE-2024-6260HIGHMalwarebytes Antimalware Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2026-18267MEDIUMKenwood DNR1007XR Firmware Update Link Following Code Execution VulnerabilityEPSS 0.3%CVE-2026-62812HIGHWindows DHCP Server Elevation of Privilege VulnerabilityEPSS 0.3%CVE-2026-47699MEDIUMConfidential Containers Guest Components image-rs: zip-slip-class arbitrary file write via absolute entry path in hardlink fallbackEPSS 0.3%CVE-2022-38730MEDIUMDocker Desktop for Windows before 4.6 allows attackers to overwrite any file through the windowscontainers/start dockerBackendV2 API by contEPSS 0.3%CVE-2025-24242MEDIUMThis issue was addressed with improved handling of symlinks. This issue is fixed in macOS Sequoia 15.4. An app with root privileges may be aEPSS 0.3%CVE-2021-32549HIGHapport read_file() function could follow maliciously constructed symbolic linksEPSS 0.3%