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

856 results · Feed

  • High 8.2

    Race Condition

    A race condition vulnerability exists where an authenticated, local attacker on a Windows Nessus Agent host could modify installation parameters at installation time, which could lead to the execution of arbitrary code on the Nessus host. - CVE-2024-3292

  • High 8.2

    Race Condition

    A race condition vulnerability exists where an authenticated, local attacker on a Windows Nessus host could modify installation parameters at installation time, which could lead to the execution of arbitrary code on the Nessus host

  • Medium 4.7

    Time-of-check Time-of-use race condition in Intel(R) Neural Compressor software before version 2.5.0 may allow an authe…

  • High 7.8

    PHOENIX CONTACT: privilege escalation due to a TOCTOU vulnerability in the CHARX Series

    A local attacker with low privileges can perform a privilege escalation with an init script due to a TOCTOU vulnerability.

  • High 7.4

    An issue was discovered in Alcatel-Lucent ALE NOE deskphones through 86x8_NOE-R300.1.40.12.4180 and SIP deskphones thro…

  • Medium 6.5

    Race Condition Vulnerability in mintplex-labs/anything-llm

    A race condition vulnerability exists in the mintplex-labs/anything-llm repository, specifically within the user invite acceptance process. Attackers can exploit this vulnerability by sending multiple concurrent requests to accept a single user invite, allowi…

  • High 8.4

    Time-of-check Time-of-use (TOCTOU) Race Condition in Hypervisor

    Memory corruption while loading a VM from a signed VM image that is not coherent in the processor cache.

  • High 7.7

    WordOps has TOCTOU race condition

    WordOps through 3.20.0 has a wo/cli/plugins/stack_pref.py TOCTOU race condition because the conf_path os.open does not use a mode parameter during file creation.

  • Critical 9.0

    Tesla Model 3 Gateway Firmware Signature Validation Bypass Vulnerability

    Tesla Model 3 Gateway Firmware Signature Validation Bypass Vulnerability. This vulnerability allows network-adjacent attackers to execute arbitrary code on affected Tesla Model 3 vehicles. An attacker must first obtain the ability to execute privileged code o…

  • 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

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

    Parallels Desktop Updater 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 execute…

  • High 8.8

    Anti-Tampering bypass via Repair App functionality

    Anti-tampering protection of the Zscaler Client Connector can be bypassed under certain conditions when running the Repair App functionality. This affects Zscaler Client Connector on Windows prior to 4.2.1

  • Medium 6.0

    In deletefiles in FDUPES before 2.2.0, a TOCTOU race condition allows arbitrary file deletion via a symlink.

  • Low 2.2

    Tillitis TKey Signer possible RAM disclosure vulnerability

    The Tillitis TKey signer device application is an ed25519 signing tool. A vulnerability has been found that makes it possible to disclose portions of the TKey’s data in RAM over the USB interface. To exploit the vulnerability an attacker needs to use a custom…

  • Medium 4.9

    OpenStack Storlets arbitrary code execution vulnerability

    An issue in OpenStack Storlets yoga-eom allows a remote attacker to execute arbitrary code via the gateway.py component.

  • Medium 5.5

    Race Condition was identified in GitHub Enterprise Server that allowed maintaining admin permissions

    A race condition in GitHub Enterprise Server allowed an existing admin to maintain permissions on a detached repository by making a GraphQL mutation to alter repository permissions while the repository is detached. This vulnerability affected all versions of …

  • High 8.8

    A Race Condition (TOCTOU) vulnerability in web component of Ivanti Avalanche before 6.4.3 allows a remote authenticated…

  • High 8.8

    A Race Condition (TOCTOU) vulnerability in web component of Ivanti Avalanche before 6.4.3 allows a remote authenticated…

  • Critical 9.8

    OpenStack magnum vulnerable to time-of-check to time-of-use (TOCTOU) attack

    An issue in OpenStack magnum yoga-eom version allows a remote attacker to execute arbitrary code via the cert_manager.py. component.

  • High 7.1

    Secure Boot Security Feature Bypass Vulnerability

    Secure Boot Security Feature Bypass Vulnerability

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

    Windows Kernel Elevation of Privilege Vulnerability

    Windows Kernel Elevation of Privilege Vulnerability

  • High 7.2

    Windows Distributed File System (DFS) Remote Code Execution Vulnerability

    Windows Distributed File System (DFS) Remote Code Execution Vulnerability

  • Medium 5.9

    Timing Attack Vulnerability in gradio-app/gradio

    A timing attack vulnerability exists in the gradio-app/gradio repository, specifically within the login function in routes.py. The vulnerability arises from the use of a direct comparison operation (`app.auth[username] == password`) to validate user credentia…

  • Medium 6.1

    Anti Rollback bypass with physical access and TOCTOU attack

    ESP-IDF is the development framework for Espressif SoCs supported on Windows, Linux and macOS. A Time-of-Check to Time-of-Use (TOCTOU) vulnerability was discovered in the implementation of the ESP-IDF bootloader which could allow an attacker with physical acc…

  • High 7.0

    TOCTOU Race Condition problem in iSulad

    Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in openEuler iSulad on Linux allows Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions. This vulnerability is associated with program files https://gitee.Com/openeuler/iSulad/blob/…

  • High 7.2

    Race condition in BIOS firmware for some Intel(R) Processors may allow a privileged user to potentially enable escalati…

  • Medium 5.3

    Zoom Rooms Client for Windows - Race Condition

    Race condition in the installer for Zoom Rooms Client for Windows before version 5.17.5 may allow an authenticated user to conduct a denial of service via local access.

  • Medium 5.3

    Dell PowerEdge Server BIOS and Dell Precision Rack BIOS contain a TOCTOU race condition vulnerability. A local low priv…

  • High 7.0

    Windows Print Spooler Elevation of Privilege Vulnerability

    Windows Print Spooler Elevation of Privilege Vulnerability

  • Medium 6.3

    Nix Corruption of fixed-output derivations

    Nix is a package manager for Linux and other Unix systems. A fixed-output derivations on Linux can send file descriptors to files in the Nix store to another program running on the host (or another fixed-output derivation) via Unix domain sockets in the abstr…

  • Medium 6.2

    OpenBSD 7.4 pf state race condition kernel crash

    In OpenBSD 7.4 before errata 009, a race condition between pf(4)'s processing of packets and expiration of packet states may cause a kernel panic.

  • Medium 6.0

    Pcp: unsafe use of directories allows pcp to root privilege escalation

    A vulnerability has been identified in the Performance Co-Pilot (PCP) package, stemming from the mixed privilege levels utilized by systemd services associated with PCP. While certain services operate within the confines of limited PCP user/group privileges, …

  • High 8.1

    An attacker could have executed unauthorized scripts on top origin sites using a JavaScript URI when opening an externa…

  • High 7.8

    Potential jail escape vulnerabilities in netmap

    The total size of the user-provided nmreq to nmreq_copyin() was first computed and then trusted during the copyin. This time-of-check to time-of-use bug could lead to kernel memory corruption. On systems configured to include netmap in their devfs_ruleset, a …

  • Medium 5.5

    Windows Kernel Security Feature Bypass Vulnerability

    Windows Kernel Security Feature Bypass Vulnerability

  • High 7.0
    CVE-2024-21371 EPSS 11%

    Windows Kernel Elevation of Privilege Vulnerability

    Windows Kernel Elevation of Privilege Vulnerability

  • High 7.8

    Time-of-check Time-of-use (TOCTOU) Race Condition in Trusted Execution Environment

    Memory corruption in Trusted Execution Environment while deinitializing an object used for license validation.

  • High 7.0
    CVE-2022-48618 Exploited

    The issue was addressed with improved checks. This issue is fixed in macOS Ventura 13.1, watchOS 9.2, iOS 16.2 and iPad…

    KEV Jan 31, 2024
  • High 7.0

    Buildkite Elastic CI for AWS time-of-check-time-of-use race condition vulnerability

    A time-of-check-time-of-use race condition vulnerability in Buildkite Elastic CI for AWS versions prior to 6.7.1 and 5.22.5 allows the buildkite-agent user to bypass a symbolic link check for the PIPELINE_PATH variable in the fix-buildkite-agent-builds-permis…

  • Medium 6.3

    Race Condition allows Administrative Access on Organization Repositories

    A race condition in GitHub Enterprise Server was identified that could allow an attacker administrator access. To exploit this, an organization needs to be converted from a user. This vulnerability affected all versions of GitHub Enterprise Server since 3.7 a…