Falhas do tipo CWE-59

823 resultados

Seguimento de links simbólicos (symlink)

A aplicação segue links simbólicos sem validação, permitindo que um atacante redirecione operações de arquivo para locais não autorizados. Isso pode resultar em leitura, modificação ou exclusão de arquivos sensíveis fora do diretório esperado.

Exemplo

Um servidor web processa uploads em /tmp/uploads/, mas não verifica se os caminhos são links simbólicos. Um atacante cria um symlink em /tmp/uploads/config que aponta para /etc/passwd, e a aplicação sobrescreve o arquivo de senhas do sistema.

Como mitigar

Use funções que resolvem caminhos canônicos (realpath em C, Path.toRealPath() em Java) antes de qualquer operação com arquivo, e implemente verificações de TOCTOU (time-of-check-time-of-use). Mantenha operações sensíveis em diretórios controlados com permissões restritivas e evite processar symlinks vindos de áreas com controle de usuário.

CVE-2020-7325MEDIUMPrivilege Escalation vulnerability in MVISION EndpointEPSS 0.3%CVE-2026-32024MEDIUMOpenClaw < 2026.2.22 - Symlink Traversal in Avatar HandlingEPSS 0.3%CVE-2026-19820MEDIUMBackblaze Client for Windows Improper Link Resolution VulnerabilityEPSS 0.3%CVE-2026-5161HIGHImproper Authentication in TUBITAK BILGEM's Pardus AboutEPSS 0.3%CVE-2026-17106HIGHTar extraction in moby/go-archive can write outside the destination directory via link followingEPSS 0.3%CVE-2021-35937A race condition vulnerability was found in rpm. A local unprivileged user could use this flaw to bypass the checks that were introduced in EPSS 0.3%CVE-2026-11322HIGHHermes WebUI before 0.51.221 Path Traversal via Symlink Workspace BypassEPSS 0.3%CVE-2022-31250HIGHkeylime %post scriplet allows for privilege escalation from keylime user to rootEPSS 0.3%CVE-2021-32553HIGHapport read_file() function could follow maliciously constructed symbolic linksEPSS 0.3%CVE-2026-17459MEDIUMperwendel spark SparkJava ExternalResourceHandler.jav staticFiles.externalLocation symlinkEPSS 0.3%CVE-2026-55074HIGHAnsible FreeBSD Jail Connection Plugin: Jail escape via symlink following in put_file (host-side root mv)EPSS 0.3%CVE-2024-7252HIGHComodo Internet Security Pro cmdagent Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2024-7250HIGHComodo Internet Security Pro cmdagent Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2024-7251HIGHComodo Internet Security Pro cmdagent Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2022-38699MEDIUMASUS Armoury Crate Service - Arbitrary File Creation via Elevation of Privilege FlawEPSS 0.3%CVE-2020-8013LOWpermissions: chkstat sets unintended setuid/capabilities for mrsh and wodimEPSS 0.3%CVE-2025-5474HIGH2BrightSparks SyncBackFree Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2026-71964HIGHCyberPanel 2.4.3 Arbitrary File Read via File Manager ZIP UploadEPSS 0.3%CVE-2022-31218HIGHDrive Composer Link Following Local Privilege Escalation VulnerabilityEPSS 0.3%CVE-2026-89258CRITICALHugo before v0.165.0 Symlink Confinement Bypass via resources.GetEPSS 0.3%