Weaknesses of type CWE-367

680 results

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

A aplicação verifica uma condição (ex: permissão, existência de arquivo) e depois usa o recurso baseado naquela verificação, mas entre os dois momentos outro processo pode mudar o estado do recurso. O atacante explora a janela de tempo para alterar o que foi verificado, contornando a validação.

Example

Um programa verifica se um arquivo existe e tem permissão de leitura, depois o abre para processar. Entre a verificação e a abertura, um atacante pode trocar o arquivo por um link simbólico apontando para um arquivo sensível do sistema. O programa abre o link sem perceber a mudança.

How to mitigate

Use operações atômicas que combinam verificação e uso em uma única chamada de sistema (ex: open() com flags exclusivas, fstat() após abrir arquivo). Em casos de acesso a dados compartilhados, implemente locks ou transações que impeçam alterações entre a validação e o uso do recurso.

CVE-2021-26356HIGHA TOCTOU in ASP bootloader may allow an attacker to tamper with the SPI ROM following data read to memory potentially resulting in S3 data cEPSS 0.4%CVE-2025-24432LOWAdobe Commerce | Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)EPSS 0.4%CVE-2026-82761CRITICALMagic link single-use tokens replayable via TOCTOU race in AshAuthenticationEPSS 0.4%CVE-2021-46792MEDIUMTime-of-check Time-of-use (TOCTOU) in the BIOS2PSP command may allow an attacker with a malicious BIOS to create a race condition causing thEPSS 0.4%CVE-2025-26620MEDIUMDuende.AccessTokenManagement race condition when concurrently retrieving customized Client Credentials Access TokensEPSS 0.4%CVE-2024-6601MEDIUMRace condition in permission assignmentEPSS 0.4%CVE-2025-69211MEDIUMNest has a Fastify URL Encoding Middleware Bypass (TOCTOU)EPSS 0.4%CVE-2024-1563HIGHAn attacker could have executed unauthorized scripts on top origin sites using a JavaScript URI when opening an external URL with a custom FEPSS 0.4%CVE-2026-76044HIGHRace condition in USB in Google Chrome prior to 151.0.7922.169 allowed a remote attacker who had compromised the renderer process to potentiEPSS 0.4%CVE-2026-26017HIGHCoreDNS ACL BypassEPSS 0.4%CVE-2021-3899HIGHThere is a race condition in the 'replaced executable' detection that, with the correct local configuration, allow an attacker to execute arEPSS 0.4%CVE-2025-43276MEDIUMA logic error was addressed with improved error handling. This issue is fixed in macOS Sequoia 15.6. iCloud Private Relay may not activate wEPSS 0.4%CVE-2024-43511HIGHWindows Kernel Elevation of Privilege VulnerabilityEPSS 0.4%CVE-2025-50158HIGHWindows NTFS Information Disclosure VulnerabilityEPSS 0.4%CVE-2026-45804HIGHDiffusers: TOCTOU Trust Remote Code BypassEPSS 0.4%CVE-2026-62189HIGHOpenClaw < 2026.6.9 Symlink Following via Mirror SyncEPSS 0.4%CVE-2025-54093HIGHWindows TCP/IP Driver Elevation of Privilege VulnerabilityEPSS 0.4%CVE-2024-23463HIGHAnti-Tampering bypass via Repair App functionalityEPSS 0.4%CVE-2020-8873HIGHThis vulnerability allows local attackers to escalate privileges on affected installations of Parallels Desktop 15.1.2-47123. An attacker muEPSS 0.4%CVE-2025-24036HIGHMicrosoft AutoUpdate (MAU) Elevation of Privilege VulnerabilityEPSS 0.4%