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-2026-75524 OpenReception: race condition in add-to-tunnel and create-new-client allows overlapping appointments for one agent — appointment-booking-software 5.4 Medium 2026-10-23
CVE-2026-105481 Node.js 22/24/26.x HTTP 代理连接重用漏洞 — node - - 2026-10-23
CVE-2026-57114 PraisonAI: Jobs webhook SSRF protection bypass via DNS rebinding — PraisonAI 7.2 High 2026-10-23
CVE-2026-112941 filelock: SoftReadWriteLock follows a lock tree swapped in after its first acquire and writes lock records into directories of the user running the lock — filelock 3.3 Low 2026-10-20
CVE-2026-112937 filelock: ReadWriteLock on the hard-link route deletes any directory another user renames onto its .filelock-* link directory name — filelock 6.1 Medium 2026-10-20
CVE-2026-112935 filelock: SoftFileLock stale-lock break removes a live lock file on a reused inode number and admits two holders — filelock 4.7 Medium 2026-10-20
CVE-2026-80353 Apache Tomcat: TOCTOU when setting specific permissions for Unix Domain Sockets - Fix for CVE-2026-65183 did not address APR connector — Apache Tomcat - - 2026-10-20
CVE-2026-94621 AliasVault: Server-Side Request Forgery via DNS rebinding in Favicon Extraction — aliasvault 6.3 Medium 2026-10-15
CVE-2026-57569 Lychee: Distinct post-fix SSRF variant in Photo::fromUrl due to missing IP pinning after DNS-based validation — Lychee 2.3 Low 2026-10-15
CVE-2026-101308 TOCTOU race between sound(4) buffer resizing and mmap — FreeBSD - - 2026-10-15
CVE-2025-68404 vcs_pentest Race Condition Authentication Bypass Vulnerability in QuRouter management interface — QuRouter 7.5 High 2026-10-15
CVE-2026-102354 BentoPDF: SSRF via DNS Rebinding (TOCTOU) in Cloudflare CORS Proxy Worker — bentopdf 6.8 Medium 2026-10-14
CVE-2026-86848 Dpdk: dpdk: time-of-check/time-of-use vulnerability allowing guest-triggered out-of-bounds write in vhost-crypto — Fast Datapath for RHEL 10 8.8 High 2026-10-14
CVE-2026-93683 Dpdk: dpdk: guest-triggered out-of-bounds walk via vhost indirect descriptor length toctou — Fast Datapath for RHEL 10 6.4 Medium 2026-10-14
CVE-2026-53613 util-linux mount target TOCTOU allows local privilege escalation — util-linux 7.0 High 2026-10-14
CVE-2026-53612 util-linux mount hook_owner TOCTOU allows local privilege escalation — util-linux 7.0 High 2026-10-14
CVE-2026-62840 Linux Kernel Elevation of Privilege Vulnerability — Linux 3P (Third Party) Distros 7.0 High 2026-10-13
CVE-2026-108396 Windows Modern Device Management (MDM) Elevation of Privilege Vulnerability — Windows 10 Version 1809 7.0 High 2026-10-13
CVE-2026-96939 Servicing Stack Updates Elevation of Privilege Vulnerability — Windows 11 version 23H2 7.0 High 2026-10-13
CVE-2026-96853 Windows Win32 Kernel Subsystem Information Disclosure Vulnerability — Windows 10 Version 1607 4.7 Medium 2026-10-13
CVE-2026-70122 Windows Broadcast DVR User Service Elevation of Privilege Vulnerability — Windows 10 Version 21H2 6.5 Medium 2026-10-13
CVE-2026-85943 Reliable Multicast Transport Driver (RMCAST) Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.0 High 2026-10-13
CVE-2026-85879 Windows Subsystem for Linux Elevation of Privilege Vulnerability — Windows Subsystem for Linux (WSL2) 7.0 High 2026-10-13
CVE-2026-83750 Windows Error Reporting Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.0 High 2026-10-13
CVE-2026-83697 Windows Modern Device Management (MDM) Tampering Vulnerability — Windows 10 Version 1809 4.7 Medium 2026-10-13
CVE-2026-83505 Windows Setup Files Cleanup Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.0 High 2026-10-13
CVE-2026-70288 Win32k Information Disclosure Vulnerability — Windows 10 Version 1607 5.5 Medium 2026-10-13
CVE-2026-70075 Windows Virtualization-Based Security (VBS) Enclave Security Feature Bypass Vulnerability — Windows 10 Version 1809 4.4 Medium 2026-10-13
CVE-2026-97774 Microsoft Office Click-To-Run Elevation of Privilege Vulnerability — Microsoft 365 Apps for Enterprise 7.0 High 2026-10-13
CVE-2026-85920 Windows BitLocker Elevation of Privilege Vulnerability — Windows 10 Version 1607 7.0 High 2026-10-13

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