Falhas do tipo CWE-59

984 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-26277MEDIUMArbitrary read/write in DBdeployerEPSS 1.2%CVE-2024-12754MEDIUMAnyDesk Link Following Information Disclosure VulnerabilityEPSS 1.2%CVE-2024-26199HIGHMicrosoft Office Elevation of Privilege VulnerabilityEPSS 1.2%CVE-2022-24904MEDIUMSymlink following allows leaking out-of-bound manifests and JSON files from Argo CD repo-serverEPSS 1.2%CVE-2024-30093HIGHWindows Storage Elevation of Privilege VulnerabilityEPSS 1.1%CVE-2016-8641MEDIUMA privilege escalation vulnerability was found in nagios 4.2.x that occurs in daemon-init.in when creating necessary files and insecurely chEPSS 1.1%CVE-2023-36047HIGHWindows Authentication Elevation of Privilege VulnerabilityEPSS 1.1%CVE-2024-21329HIGHAzure Connected Machine Agent Elevation of Privilege VulnerabilityEPSS 1.1%CVE-2021-43237HIGHWindows Setup Elevation of Privilege VulnerabilityEPSS 1.1%CVE-2025-21331HIGHWindows Installer Elevation of Privilege VulnerabilityEPSS 1.1%CVE-2025-26625HIGHGit LFS may write to arbitrary files via crafted symlinksEPSS 1.1%CVE-2025-27727HIGHWindows Installer Elevation of Privilege VulnerabilityEPSS 1.0%CVE-2026-57991HIGHMicrosoft Edge (Chromium-based) Information Disclosure VulnerabilityEPSS 1.0%CVE-2024-9341MEDIUMPodman: buildah: cri-o: fips crypto-policy directory mounting issue in containers/common go libraryEPSS 1.0%CVE-2026-67368HIGHMicrosoft SQL Server Elevation of Privilege VulnerabilityEPSS 1.0%CVE-2026-50549CRITICALCursor Desktop sandbox escape via symlink and failed path canonicalizationEPSS 1.0%CVE-2025-55188LOW7-Zip before 25.01 does not always properly handle symbolic links during extraction.EPSS 1.0%CVE-2021-30356—A denial of service vulnerability was reported in Check Point Identity Agent before R81.018.0000, which could allow low privileged users to EPSS 1.0%CVE-2023-51636HIGHAvira Prime Link Following Local Privilege Escalation VulnerabilityEPSS 1.0%CVE-2024-30033HIGHWindows Search Service Elevation of Privilege VulnerabilityEPSS 1.0%