目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CWE-367 检查时间与使用时间(TOCTOU)的竞争条件 类漏洞列表 410

CWE-367 检查时间与使用时间(TOCTOU)的竞争条件 类弱点 410 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-367 属于竞态条件漏洞,指系统在检查资源状态后、实际使用前,资源状态发生不可控变化,导致检查失效。攻击者利用这一时间窗口,通过并发操作篡改资源,从而绕过安全验证或执行未授权操作。开发者应避免在检查与使用间插入耗时操作,采用原子性操作或加锁机制确保状态一致性,以消除竞争条件带来的安全风险。

MITRE CWE 官方描述
CWE:CWE-367 检查时-使用时(TOCTOU)竞态条件 英文:产品在利用资源之前会检查该资源的状态,但在检查与利用之间,资源的状态可能发生变化,从而导致检查结果失效。
常见影响 (6)
Integrity, OtherAlter Execution Logic, Unexpected State
The attacker can gain access to otherwise unauthorized resources.
Integrity, OtherModify 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, OtherOther
The resource in question, or other resources (through the corrupted one), may be changed in undesirable ways by a malicious user.
Non-RepudiationHide 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, OtherOther
In some cases it may be possible to delete files a malicious user might not otherwise have access to, such as log files.
缓解措施 (5)
ImplementationThe 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.
ImplementationWhen 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 DesignLimit the interleaving of operations on files from multiple processes.
Implementation, Architecture and DesignIf 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.
ImplementationRecheck the resource after the use call to verify that the action was taken appropriately.
代码示例 (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标题CVSS风险等级Published
CVE-2026-1880 ASUS DriverHub 安全漏洞 — DriverHub 7.8AIHighAI2026-04-16
CVE-2026-3590 Mattermost 安全漏洞 — Mattermost 6.5 Medium2026-04-15
CVE-2026-27929 Microsoft Windows 安全漏洞 — Windows 10 Version 1607 7.0 High2026-04-14
CVE-2026-35648 OpenClaw 安全漏洞 — OpenClaw 3.7 Low2026-04-10
CVE-2026-4878 libcap 安全漏洞 — Red Hat Enterprise Linux 10 6.7 Medium2026-04-09
CVE-2026-32602 homarr 安全漏洞 — homarr 4.2 Medium2026-04-06
CVE-2026-34224 Parse Server 安全漏洞 — parse-server 8.2AIHighAI2026-03-31
CVE-2026-32988 OpenClaw 安全漏洞 — OpenClaw 7.5 High2026-03-31
CVE-2026-32977 OpenClaw 安全漏洞 — OpenClaw 6.3 Medium2026-03-31
CVE-2026-32921 OpenClaw 安全漏洞 — OpenClaw 6.3 Medium2026-03-31
CVE-2026-33574 OpenClaw 安全漏洞 — OpenClaw 6.2 Medium2026-03-29
CVE-2026-32979 OpenClaw 安全漏洞 — OpenClaw 7.3 High2026-03-29
CVE-2026-33624 Parse Server 安全漏洞 — parse-server 9.1 -2026-03-24
CVE-2026-32043 OpenClaw 安全漏洞 — OpenClaw 6.5 Medium2026-03-21
CVE-2026-31997 OpenClaw 安全漏洞 — OpenClaw 6.0 Medium2026-03-19
CVE-2026-27670 OpenClaw 安全漏洞 — OpenClaw 5.3 Medium2026-03-19
CVE-2026-32943 Parse Server 安全漏洞 — parse-server 7.4 -2026-03-18
CVE-2026-27545 OpenClaw 安全漏洞 — OpenClaw 6.1 Medium2026-03-18
CVE-2026-2364 CODESYS Development System 安全漏洞 — CODESYS Installer 7.3 High2026-03-10
CVE-2026-26017 CoreDNS 安全漏洞 — coredns 7.7 High2026-03-06
CVE-2026-27750 Avira Internet Security 安全漏洞 — Avira Internet Security 7.8 High2026-03-05
CVE-2026-20445 MediaTek Chipsets 安全漏洞 — MediaTek chipset 4.1AIMediumAI2026-03-02
CVE-2026-20438 MediaTek Chipsets 安全漏洞 — MediaTek chipset 6.4AIMediumAI2026-03-02
CVE-2026-27128 Craft CMS 安全漏洞 — cms 5.3AIMediumAI2026-02-24
CVE-2026-27127 Craft CMS 安全漏洞 — cms 5.9 -2026-02-24
CVE-2026-27189 OpenSift 安全漏洞 — OpenSift 6.6 Medium2026-02-21
CVE-2026-25738 Indico 代码问题漏洞 — indico 7.5AIHighAI2026-02-19
CVE-2026-20796 Mattermost 安全漏洞 — Mattermost 3.1 Low2026-02-13
CVE-2026-26224 Intego Log Reporter 安全漏洞 — Log Reporter 7.0AIHighAI2026-02-12
CVE-2023-20548 AMD Graphics Driver 安全漏洞 — AMD Radeon™ RX 5000 Series Graphics Products 7.0AIHighAI2026-02-11

CWE-367(检查时间与使用时间(TOCTOU)的竞争条件) 是常见的弱点类别,本平台收录该类弱点关联的 410 条 CVE 漏洞。