Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-367 (检查时间与使用时间(TOCTOU)的竞争条件) — Vulnerability Class 561

561 vulnerabilities classified as CWE-367 (检查时间与使用时间(TOCTOU)的竞争条件). AI Chinese analysis included.

CWE-367 represents a logic flaw where a system verifies a resource’s state before accessing it, allowing the state to change maliciously between the verification and actual usage. Attackers typically exploit this race condition by manipulating the resource, such as swapping a file or altering permissions, during the narrow window between the check and the use. This enables unauthorized access or privilege escalation, as the application proceeds based on outdated, validated assumptions. To mitigate this vulnerability, developers must ensure atomic operations, ensuring that the check and use occur simultaneously without interruption. Implementing robust locking mechanisms, utilizing secure system calls that combine verification and access, or adopting file descriptor-based approaches can effectively prevent state changes, thereby eliminating the race condition and securing the resource against temporal manipulation.

MITRE CWE Description
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.
Common Consequences (6)
Integrity, Other Alter Execution Logic, Unexpected State
The attacker can gain access to otherwise unauthorized resources.
Integrity, Other Modify Application Data, Modify Files or Directories, Modify Memory, Other
Race conditions such as this kind may be employed to gain read or write access to resources which are not normally readable or writable by the user in question.
Integrity, Other Other
The resource in question, or other resources (through the corrupted one), may be changed in undesirable ways by a malicious user.
Non-Repudiation Hide Activities
If a file or other resource is written in this method, as opposed to in a valid way, logging of the activity may not occur.
Non-Repudiation, Other Other
In some cases it may be possible to delete files a malicious user might not otherwise have access to, such as log files.
Mitigations (5)
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.
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.
Architecture and Design Limit the interleaving of operations on files from multiple processes.
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.
Implementation Recheck the resource after the use call to verify that the action was taken appropriately.
Examples (2)
The following code checks a file, then updates its contents.
struct stat *sb; ... lstat("...",sb); // it has not been updated since the last time it was read printf("stated file\n"); if (sb->st_mtimespec==...){ print("Now updating things\n"); updateThings(); }
Bad · C
The following code is from a program installed setuid root. The program performs certain file operations on behalf of non-privileged users, and uses access checks to ensure that it does not use its root privileges to perform operations that should otherwise be unavailable the current user. The program uses the access() system call to check if the person running the program has permission to access…
if(!access(file,W_OK)) { f = fopen(file,"w+"); operate(f); ... } else { fprintf(stderr,"Unable to open file %s.\n",file); }
Bad · C
CVE ID Title CVSS Severity Published
CVE-2025-46415 Nix、lix和GNU Guix 安全漏洞 — Nix 3.2 Low 2025-06-27
CVE-2025-6217 PEAK-System Driver PCANFD_ADD_FILTERS Time-Of-Check Time-Of-Use Information Disclosure Vulnerability — Driver 4.7AI Medium AI 2025-06-21
CVE-2025-3464 ASUS Armoury Crate 安全漏洞 — Armoury Crate 7.4AI High AI 2025-06-16
CVE-2024-9512 Time-of-check Time-of-use (TOCTOU) Race Condition in GitLab — GitLab 5.3 Medium 2025-06-12
CVE-2025-21485 Time-of-check Time-of-use (TOCTOU) Race Condition in DSP Service — Snapdragon 7.8 High 2025-06-03
CVE-2024-53018 Time-of-check Time-of-use (TOCTOU) Race Condition in Camera Driver — Snapdragon 6.6 Medium 2025-06-03
CVE-2024-53016 Time-of-check Time-of-use (TOCTOU) Race Condition in Camera Driver — Snapdragon 6.6 Medium 2025-06-03
CVE-2025-46805 Screen has a TOCTOU race potentially allowing to send SIGHUP, SIGCONT to privileged processes when installed setuid-root 5.5 Medium 2025-05-26
CVE-2025-34027 Versa Concerto Authentication Bypass File Write Remote Code Execution — Concerto 8.1AI High AI 2025-05-21
CVE-2025-47290 Containerd vulnerable to host filesystem access during image unpack — containerd 6.3AI Medium AI 2025-05-20
CVE-2025-30663 Zoom Workplace Apps - Time-of-check Time-of-use — Zoom Workplace Apps 8.8 High 2025-05-14
CVE-2025-29833 Microsoft Virtual Machine Bus (VMBus) Remote Code Execution Vulnerability — Windows 10 Version 1507 7.7 High 2025-05-13
CVE-2025-29969 MS-EVEN RPC Remote Code Execution Vulnerability — Windows 10 Version 1507 7.5 High 2025-05-13
CVE-2024-42446 TOCTOU in SmmWhea — AptioV 7.5 High 2025-05-13
CVE-2024-13944 Link Following Local Privilege Escalation Vulnerability in NortonUtilitiesSvc in Norton Utilities Ultimate (Also affects Avast CleanUp and AVG TuneUp) — Norton Utilities Ultimate 7.8 High 2025-05-09
CVE-2025-30101 Dell PowerScale OneFS 安全漏洞 — PowerScale OneFS 4.4 Medium 2025-05-08
CVE-2024-45565 Time-of-check Time-of-use (TOCTOU) Race Condition in Camera Driver — Snapdragon 7.8 High 2025-05-06
CVE-2024-6029 Tesla Model S Iris Modem Race Condition Firewall Bypass Vulnerability — Model S 5.3AI Medium AI 2025-04-30
CVE-2025-3599 Symantec Endpoint Protection Elevation of Privilege — Symantec Endpoint Protection 6.5 Medium 2025-04-30
CVE-2025-46328 NodeJS Driver for Snowflake has race condition when checking access to Easy Logging configuration file — snowflake-connector-nodejs 3.3 Low 2025-04-28
CVE-2025-46327 Go Snowflake Driver has race condition when checking access to Easy Logging configuration file — gosnowflake 3.3 Low 2025-04-28
CVE-2025-46326 Snowflake Connector for .NET has race condition when checking access to Easy Logging configuration file — snowflake-connector-net 3.3 Low 2025-04-28
CVE-2025-32784 conda-forge-webservices has an Unauthorized Artifact Modification Race Condition — conda-forge-webservices 5.9AI Medium AI 2025-04-15
CVE-2025-27812 Micro-Star MSI Center 安全漏洞 — Center 8.1 High 2025-04-10
CVE-2025-21191 Windows Local Security Authority (LSA) Elevation of Privilege Vulnerability — Windows 10 Version 1507 7.0 High 2025-04-08
CVE-2025-21431 Time-of-check Time-of-use (TOCTOU) Race Condition in Automotive OS Platform — Snapdragon 5.5 Medium 2025-04-07
CVE-2024-43067 Time-of-check Time-of-use (TOCTOU) Race Condition in Camera — Snapdragon 7.8 High 2025-04-07
CVE-2024-54084 SMM Arbitrary Write via TOCTOU Vulnerability — AptioV 7.5 High 2025-03-11
CVE-2024-53694 QVPN Device Client, Qsync, Qfinder Pro — QVPN Device Client for Mac 7.0 - 2025-03-07
CVE-2024-53032 Time-of-check Time-of-use (TOCTOU) Race Condition in Automotive OS Platform — Snapdragon 7.8 High 2025-03-03

Vulnerabilities classified as CWE-367 (检查时间与使用时间(TOCTOU)的竞争条件) represent 561 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.