Explore

Rule Explorer

Search the public rule index by CVE, GHSA, CWE, language, framework, author, or rule slug. Filter by language, framework, severity, confidence, license, and validation status.

Public rules
4797
Downloads
7.4M
Verified
4797
Authors
2
Search the rule indexUse CVE, GHSA, CWE, language, framework, package, or rule slug.
29 rules matched. Showing 24 loaded rules.
Publish rule
CVE-2026-75857: Mcp Stdio Unverified Spawncve-2026-75857-mcp-stdio-unverified-spawn

Calling `validate_before_stdio_spawn` directly instead of preparing and binding the launch via `prepare_stdio_launch` creates a TOCTOU race condition where spawned executables or arguments may be manipulated between validation and execution.

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
73quality
CVE-2026-70597: Macos Codesign Use Pid Instead Of Audit Tokencve-2026-70597-macos-codesign-use-pid-instead-of-audit-token

Using 'kSecGuestAttributePid' to query code signatures via SecCodeCopyGuestWithAttributes is vulnerable to PID reuse and exec race conditions. Use 'kSecGuestAttributeAudit' with an audit_token_t instead.

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
75quality
CVE-2026-70455: Path Resolution Toctou Symlink Racecve-2026-70455-path-resolution-toctou-symlink-race

File operation relies on incomplete daemon/chroot state checks rather than checking active relative path confinement or using race-free directory file descriptor operations. This can expose path resolution to TOCTOU symlink races.

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
73quality
CVE-2026-65058: Unconfirmed Streamed Chunk Hashingcve-2026-65058-unconfirmed-streamed-chunk-hashing

A networked data chunk is fetched in a loop and hashed directly without prior validation or confirmation. This can lead to a Time-of-Check to Time-of-Use (TOCTOU) vulnerability where the user confirms an initial data subset but a malicious host provides different subsequent chunks during the hashing phase.

by Provallyupdated 2026-09-02Apache-2.0
2790 direct279 via packs
downloads
70quality
CVE-2026-59676: Deferred Setxattr Toctoucve-2026-59676-deferred-setxattr-toctou

Applying `setxattr` on string paths inside a loop (often part of directory traversal or deferred attribute application) introduces a Time-of-Check to Time-of-Use (TOCTOU) race condition. If an attacker replaces a traversed directory with a symlink before the attribute application, `setxattr` will follow the symlink, allowing modifications on unintended arbit

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
69quality
CVE-2026-55249: Rust File Toctou Check Then Readcve-2026-55249-rust-file-toctou-check-then-read

A Time-of-Check to Time-of-Use (TOCTOU) race condition was detected. A file was verified or checked (e.g., checking trust status, signature, or auth), and then subsequently re-read from the filesystem. An attacker could overwrite or swap the file between the check and the read, modifying the supposedly verified content. To fix this, read the file into memory

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
74quality
CVE-2026-54094: Files File Go Cwe 000 Cve 2026 54094cve-2026-54094-files-file-go-cwe-000-cve-2026-54094

Insecure filesystem scoping or unsafe manual symlink checks detected. Using `afero.NewBasePathFs` directly on struct fields or implementing exported manual TOCTOU checks with `filepath.EvalSymlinks` allows attackers to bypass directory restrictions and escape scopes. Encapsulate filesystem access in safe abstractions and avoid exported manual TOCTOU checks.

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
72quality
CVE-2026-53796: Rsync Toctou Path Resolution Bypasscve-2026-53796-rsync-toctou-path-resolution-bypass

Incomplete daemon/chroot check allows TOCTOU symlink race conditions during file operations. Ensure secure path resolution is active for all non-chrooted receiver transfers.

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
70quality
CVE-2026-53786: Openat2 Resolve Beneath Path Traversal Toctoucve-2026-53786-openat2-resolve-beneath-path-traversal-toctou

Delegating path containment to openat2 with RESOLVE_BENEATH is susceptible to TOCTOU symlink race conditions. Use a step-by-step held dirfd-stack resolver with O_NOFOLLOW to safely traverse directory paths.

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
72quality
CVE-2026-52885: Toctou On The Fly Hmac Checkcve-2026-52885-toctou-on-the-fly-hmac-check

Detects on-the-fly file reading to compute an HMAC for integrity verification without atomically using the read data. This pattern indicates a Time-of-Check Time-of-Use (TOCTOU) vulnerability if the application relies on an in-memory representation populated earlier. The integrity check validates the disk state, but the execution uses potentially malicious i

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
65quality
CVE-2026-49959: Unanchored Deletion Toctoucve-2026-49959-unanchored-deletion-toctou

A Time-of-Check Time-of-Use (TOCTOU) vulnerability exists. A path is checked for its type (e.g., using `is_dir()`) and subsequently deleted using a vulnerable unanchored operation such as `shutil.rmtree()` or `unlink()`. An attacker can substitute the path with a symlink between the check and the deletion, leading to arbitrary file deletion outside intended

by Provallyupdated 2026-06-12Apache-2.0
2.3K0 direct2.3K via packs
downloads
65quality
CVE-2026-49958: Toctou Dynamic Path Deletioncve-2026-49958-toctou-dynamic-path-deletion

Checking whether a path is a directory and conditionally deleting it using unanchored deletion methods (`shutil.rmtree`, `.unlink()`, `os.remove`) creates a Time-of-Check Time-of-Use (TOCTOU) race condition. If an attacker swaps a parent directory with a symlink between the check and the deletion call, arbitrary files and directories outside the intended bou

by Provallyupdated 2026-06-23Apache-2.0
2K0 direct2K via packs
downloads
76quality
CVE-2026-45792: Rust Toctou File Re Readcve-2026-45792-rust-toctou-file-re-read

Time-of-Check to Time-of-Use (TOCTOU) vulnerability. The file $PATH is validated but then re-read from disk. An attacker could modify the file between the check and the read, bypassing the validation. Return the verified content directly from the validation function instead of re-reading.

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
69quality
CVE-2026-45675: First User Admin Toctoucve-2026-45675-first-user-admin-toctou

Time-of-Check-Time-of-Use (TOCTOU) race condition detected during first user registration. Checking the active user count before insertion can allow multiple concurrent requests to evaluate as the "first user" and be granted administrative rights. Insert the newly registered user with a default standard role first, then evaluate the user count strictly post-

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
69quality
CVE-2026-44345: Ssrf Toctou Dns Rebindingcve-2026-44345-ssrf-toctou-dns-rebinding

A URL validation check is performed before an HTTP request, but the original URL string is passed to the network client. If the validation performs an IP address check via DNS resolution, this pattern is susceptible to Time-of-Check to Time-of-Use (TOCTOU) DNS Rebinding attacks. To fix this, resolve the IP securely and pass the IP directly to the HTTP client

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
72quality
CVE-2026-34944: Wasmtime Cranelift Passive Data Libcall Toctoucve-2026-34944-wasmtime-cranelift-passive-data-libcall-toctou

Using Cranelift built-in libcalls for Wasm passive data segments (`array.new_data`, `memory.init`, `data.drop`) is unsafe under asynchronous (fiber-based) execution. It creates a Time-of-Check to Time-of-Use (TOCTOU) vulnerability where bounds checks are performed before an implicit fiber yield, exposing segments to concurrent mutation or deletion. Inline bo

by Provallyupdated 2026-06-12Apache-2.0
2.3K0 direct2.3K via packs
downloads
70quality
CVE-2026-34452: Path Validation Toctou Returns Unresolvedcve-2026-34452-path-validation-toctou-returns-unresolved

A path is resolved to perform directory sandbox validation, but the function subsequently returns the original, unresolved path. This produces a Time-of-Check to Time-of-Use (TOCTOU) race condition. A local attacker can tamper with path symlinks after the path has been validated but before it is used, escaping the restricted directory. Return the safely reso

by Provallyupdated 2026-06-23Apache-2.0
2K0 direct2K via packs
downloads
74quality
CVE-2026-33744: Py Httpx Dns Rebinding Toctoucve-2026-33744-py-httpx-dns-rebinding-toctou

The application checks an input conditionally but then performs an HTTP request using an independent HTTP client (httpx). This creates a Time-of-Check to Time-of-Use (TOCTOU) vulnerability known as DNS Rebinding. If the check resolves DNS, the IP might change before the HTTP client connects. Secure the HTTP client inherently by enforcing IP checks directly a

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
77quality
CVE-2026-30363: Struct Field Toctou Derefcve-2026-30363-struct-field-toctou-deref

Time-of-Check to Time-of-Use (TOCTOU) data race detected. A structure field is checked for NULL and then dereferenced. In multithreaded environments, another thread can nullify or free the pointer between the check and the dereference, causing a NULL pointer dereference. Either cache the pointer in a local variable or wrap the check and use securely within a

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
74quality
CVE-2026-24260: Nvidia Update Ldcache Toctoucve-2026-24260-nvidia-update-ldcache-toctou

Returning UpdateLDCacheHook without pairing it with CreateSonameSymlinksHook leaves the container susceptible to TOCTOU symlink attacks within ldconfig.

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
70quality
CVE-2026-22701: Os Open Without Nofollowcve-2026-22701-os-open-without-nofollow

Opening a file using `os.O_CREAT` without `os.O_NOFOLLOW` can be vulnerable to TOCTOU symlink attacks. If an attacker can replace the file with a symlink before creation, the operation may target an unexpected file. Include `os.O_NOFOLLOW` in the flags, and consider using `getattr(os, "O_NOFOLLOW", 0)` for cross-platform compatibility.

by Provallyupdated 2026-06-23Apache-2.0
2K0 direct2K via packs
downloads
78quality
CVE-2026-9728: Zephyr Syscall Verifier Nested Pointer Toctoucve-2026-9728-zephyr-syscall-verifier-nested-pointer-toctou

Userspace pointer field dereference ($PTR->$FIELD) in syscall verifier memory validation without copying the containing struct to kernel memory first. This creates a TOCTOU race condition where a concurrent userspace thread can swap the nested pointer after validation.

by Provallyupdated 2026-09-02Apache-2.0
2740 direct274 via packs
downloads
70quality
CVE-2025-71176: Python Path Chmod Toctoucve-2025-71176-python-path-chmod-toctou

Time-of-Check to Time-of-Use (TOCTOU) vulnerability detected. Calling `stat()` and then `chmod()` on the same path without `follow_symlinks=False` allows an attacker to swap a file or directory with a symbolic link between the two calls. This can lead to arbitrary file permission alteration or privilege escalation. Ensure you pass `follow_symlinks=False` to

by Provallyupdated 2026-06-12Apache-2.0
2.5K0 direct2.5K via packs
downloads
70quality
24 of 29 loaded