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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-363 (允许符号链接跟随的竞争条件) — Vulnerability Class 10

10 vulnerabilities classified as CWE-363 (允许符号链接跟随的竞争条件). AI Chinese analysis included.

CWE-363 represents a critical logic flaw where software validates a file’s integrity or existence before accessing it, creating a vulnerable window for attackers to substitute the target with a symbolic link. This race condition exploits the temporal gap between the initial check and the subsequent use, allowing malicious actors to redirect the application to unintended resources, such as sensitive system files or configuration data. Developers typically mitigate this risk by employing atomic operations that combine verification and access into a single, indivisible step, thereby eliminating the exploitable interval. Alternatively, using secure file descriptors or locking mechanisms ensures that the resource remains consistent throughout the operation, preventing unauthorized redirection and maintaining the intended security posture against such temporal manipulation attacks.

MITRE CWE Description
The product checks the status of a file or directory before accessing it, which produces a race condition in which the file can be replaced with a link before the access is performed, causing the product to access the wrong file. While developers might expect that there is a very narrow time window between the time of check and time of use, there is still a race condition. An attacker could cause the product to slow down (e.g. with memory consumption), causing the time window to become larger. Alternately, in some situations, the attacker could win the race by performing a large number of attacks.
Common Consequences (1)
Confidentiality, Integrity Read Files or Directories, Modify Files or Directories
Examples (1)
This code prints the contents of a file if a user has permission.
function readFile($filename){ $user = getCurrentUser(); //resolve file if its a symbolic link if(is_link($filename)){ $filename = readlink($filename); } if(fileowner($filename) == $user){ echo file_get_contents($realFile); return; } else{ echo 'Access denied'; return false; } }
Bad · PHP
CVE ID Title CVSS Severity Published
CVE-2026-112938 filelock: StrictSoftFileLock follows a symbolic link swapped in at <path>.filelock and creates claim files in a directory another local user chooses — filelock 5.8 Medium 2026-11-05
CVE-2026-112940 filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files — filelock 7.1 High 2026-10-20
CVE-2026-112914 filelock: SoftFileLock stale-break restore follows a swapped-in symbolic link and hard-links a file of the user running the lock into the lock directory — filelock 5.3 Medium 2026-10-20
CVE-2026-91203 Cockpit-files: cockpit-files: arbitrary file ownership and permission modification via symlink race condition — Red Hat Enterprise Linux 10 6.0 Medium 2026-09-18
CVE-2026-91205 Cockpit-files: cockpit-files: local attacker can hijack file ownership via symlink race — Red Hat Enterprise Linux 10 6.0 Medium 2026-09-18
CVE-2025-13492 HP Image Assistant - Potential Escalation of Privilege — HP Image Assistant 7.0AI High AI 2025-12-03
CVE-2025-62161 youki container escape via "masked path" abuse due to mount race conditions — youki 8.4 - 2025-11-05
CVE-2024-45310 runc can be confused to create empty files/directories on the host — runc 3.6 Low 2024-09-03
CVE-2022-21658 Race condition in std::fs::remove_dir_all in rustlang — rust 7.3 High 2022-01-20
CVE-2018-6693 Endpoint Security for Linux Threat Prevention (ENSLTP) privilege escalation vulnerability — Endpoint Security for Linux Threat Prevention (ENSLTP) 6.3 - 2018-09-18

Vulnerabilities classified as CWE-363 (允许符号链接跟随的竞争条件) represent 10 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.