Skip to content
OpenAdvisories

Weakness (CWE)

CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition

Base Incomplete

The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.

How to prevent it (7 mitigations)
  1. Implementation

    The most basic advice for TOCTOU vulnerabilities is to not perform a check before the use. This does not resolve the underlying issue of the execution of a function on a resource whose state and identity cannot be assured, but it does help to limit the false sense of security given by the check.

  2. Implementation

    When the file being altered is owned by the current user and group, set the effective gid and uid to that of the current user and group when executing this statement.

  3. Architecture and Design

    Limit the interleaving of operations on files from multiple processes.

  4. Implementation, Architecture and Design

    If you cannot perform operations atomically and you must share access to the resource between multiple processes or threads, then try to limit the amount of time (CPU cycles) between the check and use of the resource. This will not fix the problem, but it could make it more difficult for an attack to succeed.

  5. Implementation

    Recheck the resource after the use call to verify that the action was taken appropriately.

  6. Architecture and Design

    Ensure that some environmental locking mechanism can be used to protect resources effectively.

  7. Implementation

    Ensure that locking occurs before the check, as opposed to afterwards, such that the resource, as checked, is the same as it is when in use.

Source: MITRE CWE-367

37 results · Clear filters · Feed

  • High 7.7
    CVE-2026-109518 Public exploit

    APT RCE via hard link reuse

    On Debian, Ubuntu, and derivative Linux distributions, an on-path attacker who can manipulate the HTTP traffic (including a malicious mirror or proxy) between an APT client and an archive server triggered by a package install can trick the client into install…

  • High 8.1
    CVE-2026-119977 Exploited Public exploit

    WordPress Core 4.7.0 - 7.1.3 - Unauthenticated Upgrade-Window Staged-Installer Remote Code Execution

    WordPress Core is vulnerable to Remote Code Execution in versions 4.7 through 7.1.3. This is due to predictable, web-accessible staging paths used during full-package core upgrades. This makes it possible for unauthenticated attackers to execute code on the s…

    KEV Nov 3, 2026
  • Medium 6.5
    CVE-2026-105481 Public exploit

    A flaw in Node.js HTTP Agent connection reuse can cause a client to accept as valid a response that was sent before the…

  • High 7.0
    CVE-2026-53613 Public exploit

    util-linux mount target TOCTOU allows local privilege escalation

    util-linux is a random collection of Linux utilities. In util-linux 2.17 through 2.41.6 and 2.42 through 2.42.3, and in 2.42.4 when the legacy `mount(2)` path is used without `/proc`, restricted non-root `mount` requests validate an `/etc/fstab` target before…

  • High 7.0
    CVE-2026-83834 Public exploit

    Windows Kernel-Mode Drivers Elevation of Privilege Vulnerability

    Use after free in Windows Kernel-Mode Drivers allows an authorized attacker to elevate privileges locally.

  • Medium 5.3
    CVE-2026-79417 Public exploit

    Improper Access Control in ArgusMonitor.sys in Argotronic eGbR ArgusMonitor 7.4.02 and earlier allows local, low-privil…

  • High 7.5
    CVE-2026-85045 Public exploit

    Race condition in V8 in Google Chrome prior to 152.0.7977.82 allowed a remote attacker to execute arbitrary code inside…

  • Low 3.1
    CVE-2026-19975 Public exploit

    Azuriom CMS Money Transfer ProfileController.php transferMoney toctou

    A weakness has been identified in Azuriom CMS up to 1.2.12. This issue affects the function transferMoney of the file app/Http/Controllers/ProfileController.php of the component Money Transfer Handler. This manipulation causes time-of-check time-of-use. The a…

  • Medium 5.3
    CVE-2026-58041 Public exploit

    A flaw in Node.js node:sqlite allows a stale StatementSyncIterator created through DatabaseSync#createTagStore() to con…

  • Medium 6.3
    CVE-2026-57973 Public exploit

    Windows Subsystem for Linux (WSL2) Kernel Tampering Vulnerability

    Time-of-check time-of-use (toctou) race condition in Windows Subsystem for Linux allows an authorized attacker to perform tampering locally.

  • High 7.5
    CVE-2026-52885 Public exploit

    Notepad++ TOCTOU: HMAC Checks Disk, Executes from Memory

    Notepad++ is a free and open-source source code editor. Prior to 8.9.6.4, NppCommands.cpp checks the HMAC of the on-disk shortcuts.xml at the moment a user command fires (Time-of-Check). However, the command payload is taken from the in-memory _userCommands v…

  • High 7.8
    CVE-2026-7791 Public exploit

    Local Privilege Escalation via TOCTOU Race Condition in Amazon WorkSpaces Skylight Agent

    Improper privilege management in the log rotation mechanism of the Skylight Workspace Config Service in Amazon WorkSpaces for Windows before 2.6.2034.0 allows a local non-admin authenticated user to place arbitrary files into arbitrary locations bypassing fil…

  • High 8.8
    CVE-2026-41651 Public exploit

    PackageKit vulnerable to TOCTOU Race on Transaction Flags leads to arbitrary package installation as root

    PackageKit is a a D-Bus abstraction layer that allows the user to manage packages in a secure way using a cross-distro, cross-architecture API. PackageKit between and including versions 1.0.2 and 1.3.4 is vulnerable to a time-of-check time-of-use (TOCTOU) rac…

  • Medium 5.4
    CVE-2026-1880 Public exploit

    An Incorrect Permission Assignment for Critical Resource vulnerability in the ASUS DriverHub update process allows priv…

  • High 7.5
    CVE-2026-30332 Public exploit

    A Time-of-Check to Time-of-Use (TOCTOU) race condition vulnerability in Balena Etcher for Windows prior to v2.1.4 allow…

  • High 7.8
    CVE-2025-38352 Exploited Public exploit

    posix-cpu-timers: fix race between handle_posix_cpu_timers() and posix_cpu_timer_del()

    In the Linux kernel, the following vulnerability has been resolved: posix-cpu-timers: fix race between handle_posix_cpu_timers() and posix_cpu_timer_del() If an exiting non-autoreaping task has already passed exit_notify() and calls handle_posix_cpu_timers() …

    KEV Sep 4, 2025
  • High 7.8
    CVE-2025-49730 Public exploit

    Microsoft Windows QoS Scheduler Driver Elevation of Privilege Vulnerability

    Time-of-check time-of-use (toctou) race condition in Microsoft Windows QoS scheduler allows an authorized attacker to elevate privileges locally.

  • High 8.4
    CVE-2025-3464 Public exploit

    A race condition vulnerability exists in Armoury Crate. This vulnerability arises from a Time-of-check Time-of-use issu…

  • High 7.5
    CVE-2025-29969 Public exploit

    MS-EVEN RPC Remote Code Execution Vulnerability

    Time-of-check time-of-use (toctou) race condition in Windows Fundamentals allows an authorized attacker to execute code over a network.

  • Critical 9.8
    CVE-2024-50379 Public exploit EPSS 32%

    Apache Tomcat: RCE due to TOCTOU issue in JSP compilation

    Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability during JSP compilation in Apache Tomcat permits an RCE on case insensitive file systems when the default servlet is enabled for write (non-default configuration). This issue affects Apache Tomcat…

  • High 8.1
    CVE-2024-48322 Public exploit

    UsersController.php in Run.codes 1.5.2 and older has a reset password race condition vulnerability.

  • Critical 9.0
    CVE-2024-0132 Public exploit EPSS 41%

    NVIDIA Container Toolkit contains a Time-of-check Time-of-Use (TOCTOU) vulnerability

    NVIDIA Container Toolkit 1.16.1 or earlier contains a Time-of-check Time-of-Use (TOCTOU) vulnerability when used with default configuration where a specifically crafted container image may gain access to the host file system. This does not impact use cases wh…

  • High 7.0
    CVE-2024-30088 Exploited · Ransomware Public exploit EPSS 68%

    Windows Kernel Elevation of Privilege Vulnerability

    Windows Kernel Elevation of Privilege Vulnerability

    KEV Oct 15, 2024
  • High 7.0
    CVE-2024-30084 Public exploit

    Windows Kernel-Mode Driver Elevation of Privilege Vulnerability

    Windows Kernel-Mode Driver Elevation of Privilege Vulnerability

  • High 7.8
    CVE-2021-3899 Public exploit

    There is a race condition in the 'replaced executable' detection that, with the correct local configuration, allow an a…

  • High 7.5
    CVE-2023-27327 Public exploit

    Parallels Desktop Toolgate Time-Of-Check Time-Of-Use Local Privilege Escalation Vulnerability

    Parallels Desktop Toolgate Time-Of-Check Time-Of-Use Local Privilege Escalation Vulnerability. This vulnerability allows local attackers to escalate privileges on affected installations of Parallels Desktop. An attacker must first obtain the ability to execut…

  • High 7.8
    CVE-2024-26218 Public exploit EPSS 13%

    Windows Kernel Elevation of Privilege Vulnerability

    Windows Kernel Elevation of Privilege Vulnerability

  • High 7.8
    CVE-2023-38041 Public exploit

    A logged in user may elevate its permissions by abusing a Time-of-Check to Time-of-Use (TOCTOU) race condition. When a …

  • High 8.8
    CVE-2023-38146 Public exploit EPSS 37%

    Windows Themes Remote Code Execution Vulnerability

    Windows Themes Remote Code Execution Vulnerability

  • High 7.8
    CVE-2023-21537 Public exploit

    Microsoft Message Queuing (MSMQ) Elevation of Privilege Vulnerability

    Microsoft Message Queuing (MSMQ) Elevation of Privilege Vulnerability

  • Medium 4.7
    CVE-2022-29800 Public exploit

    A time-of-check-time-of-use (TOCTOU) race condition vulnerability was found in networkd-dispatcher. This flaw exists be…

  • High 7.3
    CVE-2022-21658 Public exploit

    Race condition in std::fs::remove_dir_all in rustlang

    Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency. The Rust Security Response WG was notified that the `std::fs::remove_dir_all` standard library function is vulnerable a race condi…

  • Critical 9.8
    CVE-2021-32708 Public exploit

    Time-of-check Time-of-use (TOCTOU) Race Condition in league/flysystem

    Flysystem is an open source file storage library for PHP. The whitespace normalisation using in 1.x and 2.x removes any unicode whitespace. Under certain specific conditions this could potentially allow a malicious user to execute code remotely. The condition…

  • Unscored —
    CVE-2020-25860 Public exploit

    The install.c module in the Pengutronix RAUC update client prior to version 1.5 has a Time-of-Check Time-of-Use vulnera…

  • High 7.0
    CVE-2020-13162 Public exploit

    A time-of-check time-of-use vulnerability in PulseSecureService.exe in Pulse Secure Client versions prior to 9.1.6 down…

  • Low 3.9
    CVE-2018-1121 Public exploit

    procps-ng, procps is vulnerable to a process hiding through race condition. Since the kernel's proc_pid_readdir() retur…

  • High 7.4
    CVE-2015-3246 Exploited Public exploit

    libuser before 0.56.13-8 and 0.60 before 0.60-7, as used in the userhelper program in the usermode package, directly mo…

    KEV Aug 26, 2026