Falhas do tipo CWE-367

800 resultados

Condição de corrida entre verificação e uso (TOCTOU)

A aplicação verifica uma condição (ex: arquivo existe, usuário tem permissão) e depois atua sobre ela, mas entre a verificação e a ação outro processo pode alterar o estado. Um atacante explora esse intervalo para burlar controles de segurança ou acessar recursos que não deveria.

Exemplo

Um programa verifica se um arquivo é seguro para ler (if (arquivo_existe && nao_eh_symlink)), depois abre e processa. Um atacante substitui o arquivo por um symlink apontando para /etc/passwd entre a verificação e a leitura, conseguindo acessar dados sensíveis.

Como mitigar

Use operações atômicas do SO (open com flags O_NOFOLLOW, O_EXCL; fstat em vez de stat; operações que verificam e atuam em uma única chamada). Implemente locks/mutexes se lógica complexa for necessária, e valide o estado novamente após adquirir recurso.

CVE-2023-20548HIGHA Time-of-check time-of-use (TOCTOU) race condition in the AMD Secure Processor (ASP) could allow an attacker to corrupt memory resulting inEPSS 0.1%CVE-2022-32608MEDIUMIn jpeg, there is a possible use after free due to a race condition. This could lead to local escalation of privilege with System execution EPSS 0.1%CVE-2026-35354MEDIUMuutils coreutils mv Security Xattr TOCTOU Race in Cross-DeviceEPSS 0.1%CVE-2025-8192MEDIUMRace condition in AndroidTV TvSettingsEPSS 0.1%CVE-2026-11835MEDIUMCaliptra Update-Reset Secure-Boot Bypass via Attacker-Chosen AXI Staging Address (TOCTOU)EPSS 0.1%CVE-2026-41568MEDIUMMoby: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swapEPSS 0.1%CVE-2026-106451HIGHyawkat LZ4 Java: Native library extraction to a shared temporary directory is vulnerable to file replacement by another local userEPSS 0.1%CVE-2026-35356MEDIUMuutils coreutils install Arbitrary File Overwrite with -D via Path Component Symlink RaceEPSS 0.1%CVE-2026-64846LOWNix: Arbitrary file truncation outside the sandbox with recursive-nix experimental featureEPSS 0.1%CVE-2026-48983MEDIUMpam_usb: TOCTOU race condition in pad directory creation allows symlink substitutionEPSS 0.1%CVE-2025-34290HIGHVersa SASE Client for Windows < 7.9.5 Arbitrary Folder Deletion Leading to Local Privilege EscalationEPSS 0.1%CVE-2026-35376MEDIUMuutils coreutils chcon Security Bypass and Mandatory Access Control (MAC) Inconsistency via TOCTOU Race ConditionEPSS 0.1%CVE-2026-34596MEDIUMSandboxie-Plus local privilege escalation via TOCTOU race condition in UpdUtil addon installationEPSS 0.1%CVE-2026-19079MEDIUMPolicycoreutils: policycoreutils: toctou race condition in fixfiles allows arbitrary selinux label manipulationEPSS 0.1%CVE-2026-112110MEDIUMPrivileged file deletion in SafeNet Authentication Client SACSrvEPSS 0.1%CVE-2026-54576MEDIUMmport package installation has symlink TOCTOU in chown and chmod handlingEPSS 0.1%CVE-2026-53250HIGHxsk: cache csum_start/csum_offset to fix TOCTOU in xsk_skb_metadata()EPSS 0.1%CVE-2026-32043MEDIUMOpenClaw < 2026.2.25 - Time-of-Check-Time-of-Use via Mutable Symlink in system.run cwd ParameterEPSS 0.1%CVE-2026-67433MEDIUMLinuxfabrik monitoring-plugins: Symlink following in logfile legacy database migrationEPSS 0.1%CVE-2026-54587MEDIUMmport directory asset installation is vulnerable to symlink and path traversal racesEPSS 0.1%