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

317 results · Clear filters · Feed

  • Medium 5.3

    uutils coreutils tail Privileged Information Disclosure via Symlink Replacement Race

    A vulnerability in the tail utility of uutils coreutils allows for the exfiltration of sensitive file contents when using the --follow=name option. Unlike GNU tail, the uutils implementation continues to monitor a path after it has been replaced by a symbolic…

  • Medium 4.8

    Spring Security JdbcOneTimeTokenService allows a one-time token to authenticate multiple sessions

    Vulnerability in Spring Spring Security. Applications that explicitly configure One-Time Token login with JdbcOneTimeTokenService are vulnerable to a Time-of-check Time-of-use (TOCTOU) race condition. This issue affects Spring Security: from 6.4.0 through 6.4…

  • Medium 6.5

    OpenProject has Cross-Project Meeting Agenda Item Injection via Unscoped Section Lookup

    OpenProject is open-source, web-based project management software. Prior to version 17.3.0, a user with `manage_agendas` permission in any project can inject agenda items into meetings belonging to any other project on the instance — even projects they have n…

  • Medium 5.4

    A Download of Code Without Integrity Check vulnerability in the update modules in ASUS Member Center(华硕大厅) allows a loc…

  • Medium 5.4
    CVE-2026-1880 Public exploit

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

  • Medium 6.5

    Race Condition in Guest Magic Link Authentication Allows Token Reuse

    Mattermost versions 10.11.x <= 10.11.12, 11.5.x <= 11.5.0, 11.4.x <= 11.4.2, 11.3.x <= 11.3.2 fail to enforce atomic single-use consumption of guest magic link tokens, which allows an attacker with access to a valid magic link to establish multiple independen…

  • Medium 6.7

    Libcap: libcap: privilege escalation via toctou race condition in cap_set_file()

    A flaw was found in libcap. A local unprivileged user can exploit a Time-of-check-to-time-of-use (TOCTOU) race condition in the `cap_set_file()` function. This allows an attacker with write access to a parent directory to redirect file capability updates to a…

  • Medium 4.2

    Homarr has a Race Condition in Invite Token Registration (TOCTOU)

    Homarr is an open-source dashboard. Prior to 1.57.0, the user registration endpoint (/api/trpc/user.register) is vulnerable to a race condition that allows an attacker to create multiple user accounts from a single-use invite token. The registration flow perf…

  • Medium 4.7

    util-linux: TOCTOU Race Condition in util-linux mount(8) - Loop Device Setup

    util-linux is a random collection of Linux utilities. Prior to version 2.41.4, a TOCTOU (Time-of-Check-Time-of-Use) vulnerability has been identified in the SUID binary /usr/bin/mount from util-linux. The mount binary, when setting up loop devices, validates …

  • Medium 5.8

    Claude SDK for Python: Memory Tool Path Validation Race Condition Allows Sandbox Escape

    The Claude SDK for Python provides access to the Claude API from Python applications. From version 0.86.0 to before version 0.87.0, the async local filesystem memory tool in the Anthropic Python SDK validated that model-supplied paths resolved inside the sand…

  • Medium 6.3

    OpenClaw < 2026.3.11 - Sandbox Boundary Bypass via Unanchored writeFile Commit Path

    OpenClaw before 2026.3.11 contains a sandbox boundary bypass vulnerability in the fs-bridge writeFile commit step that uses an unanchored container path during the final move operation. An attacker can exploit a time-of-check-time-of-use race condition by mod…

  • Medium 6.3

    OpenClaw < 2026.3.8 - Script Content Modification via Mutable Operand Binding in system.run

    OpenClaw before 2026.3.8 contains an approval bypass vulnerability in system.run where mutable script operands are not bound across approval and execution phases. Attackers can obtain approval for script execution, modify the approved script file before execu…

  • Medium 5.8

    Incomplete privilege drop for com.system76.CosmicGreeter.GetUserData

    A Privilege Dropping / Lowering Errors/Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in  cosmic-greeter can allow an attacker to regain privileges that should have been dropped and abuse them in the racy checking logic. This issue affects co…

  • Medium 6.2

    OpenClaw < 2026.3.8 - Path Traversal via Tools Root Rebinding in Skills Download

    OpenClaw before 2026.3.8 contains a path traversal vulnerability in the skills download installer that validates the tools root lexically but reuses the mutable path during archive download and copy operations. A local attacker can rebind the tools-root path …

  • Medium 6.5

    OpenClaw < 2026.2.25 - Time-of-Check-Time-of-Use via Mutable Symlink in system.run cwd Parameter

    OpenClaw versions prior to 2026.2.25 contain a time-of-check-time-of-use vulnerability in approval-bound system.run execution where the cwd parameter is validated at approval time but resolved at execution time. Attackers can retarget a symlinked cwd between …

  • Medium 6.0

    OpenClaw < 2026.3.1 - Executable Rebind via Unbound PATH-token in system.run Approvals

    OpenClaw versions prior to 2026.3.1 fail to pin executable identity for non-path-like argv[0] tokens in system.run approvals, allowing post-approval executable rebind attacks. Attackers can modify PATH resolution after approval to execute a different binary t…

  • Medium 5.3

    OpenClaw < 2026.3.2 - Arbitrary File Write via ZIP Extraction Parent Symlink Race Condition

    OpenClaw versions prior to 2026.3.2 contain a race condition vulnerability in ZIP extraction that allows local attackers to write files outside the intended destination directory. Attackers can exploit a time-of-check-time-of-use race between path validation …

  • Medium 6.1

    OpenClaw < 2026.2.26 - Approval Bypass via Parent Symlink Current Working Directory Rebind

    OpenClaw versions prior to 2026.2.26 contain an approval bypass vulnerability in system.run execution that allows attackers to execute commands from unintended filesystem locations by rebinding writable parent symlinks in the current working directory after a…

  • Medium 5.3

    OpenClaw < 2026.3.2 - Path Confinement Bypass in Browser Output and File Write Operations

    OpenClaw versions prior to 2026.3.2 contain a path-confinement bypass vulnerability in browser output handling that allows writes outside intended root directories. Attackers can exploit insufficient canonical path-boundary validation in file write operations…

  • Medium 5.6

    Time-of-check time-of-use race condition in the UEFI PdaSmm module for some Intel(R) reference platforms may allow an i…

  • Medium 6.3

    ImageMagick has a Path Policy TOCTOU symlink race bypass

    ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-16 and 6.9.13-41, domain="path" authorization is checked before final file open/use. A symlink swap between check-time and use-time bypasses…

  • Medium 4.4

    In MDDP, there is a possible system crash due to a race condition. This could lead to local denial of service if a mali…

  • Medium 6.4

    In MAE, there is a possible out of bounds write due to a race condition. This could lead to local escalation of privile…

  • Medium 6.9

    Craft CMS's race condition in Token Service potentially allows for token usage greater than the token limit

    Craft is a content management system (CMS). In versions 4.5.0-RC1 through 4.16.18 and 5.0.0-RC1 through 5.8.22, a Time-of-Check-Time-of-Use (TOCTOU) race condition exists in Craft CMS’s token validation service for tokens that explicitly set a limited usage. …

  • Medium 6.6

    OpenSift: Race-prone local persistence could cause state corruption/loss

    OpenSift is an AI study tool that sifts through large datasets using semantic search and generative AI. Versions 1.1.2-alpha and below, use non-atomic and insufficiently synchronized local JSON persistence flows, potentially causing concurrent operations to l…

  • Medium 6.9

    Indico has Server-Side Request Forgery (SSRF) in multiple places

    Indico is an event management system that uses Flask-Multipass, a multi-backend authentication system for Flask. Versions prior to 3.3.10 are vulnerable to server-side request forgery. Indico makes outgoing requests to user-provides URLs in various places. Th…

  • Medium 4.6

    A Time-of-check time-of-use (TOCTOU) race condition in the SMM communications buffer could allow a privileged attacker …

  • Medium 6.8

    miniserve affected by a TOCTOU and symlink race vulnerability

    A TOCTOU and symlink race in svenstaro/miniserve 0.32.0 upload finalization (when uploads are enabled) can allow an attacker to overwrite arbitrary files outside the intended upload/document root in deployments where the attacker can create/replace filesystem…

  • Medium 4.8

    Turbo Frame responses can restore stale session cookies

    Race condition in the turbo-frame element handler in Hotwired Turbo before 8.0.x causes logout operations to fail when delayed frame responses reapply session cookies after logout. This can be exploited by remote attackers via selective network delays (e.g. d…

  • Medium 5.5

    Junos OS: MX10k Series: 'show system firmware' CLI command may lead to LC480 or LC2101 line card reset

    A Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in the method to collect FPC Ethernet firmware statistics of Juniper Networks Junos OS on MX10k Series allows a local, low-privileged attacker executing the 'show system firmware' CLI command t…

  • Medium 6.3

    Outray cli is vulnerable to race conditions in tunnels creation

    Outray openSource ngrok alternative. Prior to 0.1.5, a TOCTOU race condition vulnerability allows a user to exceed the set number of active tunnels in their subscription plan. This vulnerability is fixed in 0.1.5.

  • Medium 5.3

    filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock

    filelock is a platform-independent file lock for Python. Prior to version 3.20.3, a TOCTOU race condition vulnerability exists in the SoftFileLock implementation of the filelock package. An attacker with local filesystem access and permission to create symlin…

  • Medium 6.7

    Time-of-check Time-of-use (TOCTOU) Race Condition in Camera Driver

    Memory corruption while handling sensor utility operations.

  • Medium 6.7

    Time-of-check Time-of-use (TOCTOU) Race Condition in Camera Driver

    Memory corruption while processing a config call from userspace.

  • Medium 4.4

    Qfinder Pro, Qsync, QVPN

    A path traversal vulnerability has been reported to affect several product versions. If a local attacker gains a user account, they can then exploit the vulnerability to read the contents of unexpected files or system data. We have already fixed the vulnerabi…

  • Medium 6.9

    Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)

    Nest is a framework for building scalable Node.js server-side applications. Versions prior to 11.1.11 have a Fastify URL encoding middleware bypass. A NestJS application is vulnerable if it uses `@nestjs/platform-fastify`; relies on `NestMiddleware` (via `Mid…

  • Medium 6.3

    filelock has TOCTOU race condition that allows symlink attacks during lock file creation

    filelock is a platform-independent file lock for Python. In versions prior to 3.20.1, a Time-of-Check-Time-of-Use (TOCTOU) race condition allows local attackers to corrupt or truncate arbitrary user files through symlink attacks. The vulnerability exists in b…

  • Medium 4.3

    Open OnDemand allowlist bypass using symlinks in directory downloads (TOCTOU)

    Open OnDemand is an open-source HPC portal. Prior to versions 4.0.8 and 3.1.16, users can craft a "Time of Check to Time of Use" (TOCTOU) attack when downloading zip files to access files outside of the OOD_ALLOWLIST. This vulnerability impacts sites that use…

  • Medium 6.1

    Time-of-check time-of-use race condition for some Intel Ethernet Adapter Complete Driver Pack software before version 1…

  • Medium 4.4

    Time-of-check time-of-use race condition for some ACAT before version 3.13 within Ring 3: User Applications may allow a…