Weaknesses of type CWE-363

16 results

Condição de corrida em operações de arquivo simbólico

Fraqueza onde um código verifica a existência ou propriedade de um arquivo/link simbólico e, entre a verificação e o uso real, um atacante consegue trocar o alvo do link. Isso permite que o programa acesse ou modifique arquivo não previsto, contornando validações de segurança.

Example

Uma aplicação verifica se `/tmp/config.conf` é seguro (não é link simbólico) e aprova. Antes de ler o arquivo, o atacante remove o link e cria um novo apontando para `/etc/passwd`. O programa lê dados sensíveis sem perceber a troca.

How to mitigate

Use `open()` com flags `O_NOFOLLOW` (Linux) para rejeitar links simbólicos, ou realize verificação e acesso atomicamente. Valide o inode/device do arquivo logo antes de usar, não apenas no início da operação. Mantenha arquivo em diretório com permissões restritivas.

CVE-2022-21658HIGHRace condition in std::fs::remove_dir_all in rustlangEPSS 1.4%CVE-2025-31133HIGHrunc container escape via "masked path" abuse due to mount race conditionsEPSS 1.2%CVE-2025-52565HIGHcontainer escape due to /dev/console mount and related racesEPSS 0.8%CVE-2025-52881HIGHrunc: LSM labels can be bypassed with malicious config using dummy procfs filesEPSS 0.8%CVE-2024-27102CRITICALImproper isolation of server file access in github.com/pterodactyl/wingsEPSS 0.5%CVE-2024-45310LOWrunc can be confused to create empty files/directories on the hostEPSS 0.3%CVE-2025-62596HIGHyouki container escape and denial of service due to arbitrary write gadgets and procfs write redirectsEPSS 0.3%CVE-2025-62161HIGHyouki container escape via "masked path" abuse due to mount race conditionsEPSS 0.3%CVE-2026-112940HIGHfilelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own filesEPSS 0.2%CVE-2018-6693MEDIUMEndpoint Security for Linux Threat Prevention (ENSLTP) privilege escalation vulnerabilityEPSS 0.2%CVE-2026-112914MEDIUMfilelock: SoftFileLock stale-break restore follows a swapped-in symbolic link and hard-links a file of the user running the lock into the lock directoryEPSS 0.2%CVE-2026-71125MEDIUMVulnerability in the Oracle VM VirtualBox product of Oracle Virtualization (component: Core). The supported version that is affected is 7.EPSS 0.1%CVE-2026-91203MEDIUMCockpit-files: cockpit-files: arbitrary file ownership and permission modification via symlink race conditionEPSS 0.1%CVE-2026-91205MEDIUMCockpit-files: cockpit-files: local attacker can hijack file ownership via symlink raceEPSS 0.1%CVE-2025-13492MEDIUMHP Image Assistant - Potential Escalation of PrivilegeEPSS 0.1%CVE-2026-112938MEDIUMfilelock: StrictSoftFileLock follows a symbolic link swapped in at <path>.filelock and creates claim files in a directory another local user choosesEPSS —