CVE-2021-41641: Link Following in Deno
8.4
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.44377%
CWE
Published
6/13/2022
Updated
1/27/2023
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| deno | rust | < 1.16.0 | 1.16.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper permission checks in symbolic link creation. The commit d44011a shows both sync()/async() symlink functions were modified to require full read/write permissions (check_all()) instead of path-specific checks. This indicates the original implementation only verified write access to the target path, not system-wide permissions, allowing attackers to create symlinks in permitted directories that point to restricted locations. The CVE description explicitly mentions Deno.symlink as the exploitation vector, and the patch confirms the functions' security logic was inadequate pre-1.16.0.