Miggo Logo

CVE-2021-41641: Link Following in Deno

8.4

CVSS Score
3.1

Basic Information

EPSS Score
0.44377%
Published
6/13/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
denorust< 1.16.01.16.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

**no <=*.**.* *il* s*n**ox *o*s not **n*l* sym*oli* links *orr**tly. W**n runnin* **no wit* sp**i*i* writ* ****ss, t** **no.symlink m*t*o* **n ** us** to **in ****ss to *ny *ir**tory.

Reasoning

T** vuln*r**ility st*ms *rom improp*r p*rmission ****ks in sym*oli* link *r**tion. T** *ommit `*******` s*ows *ot* `syn*()`/`*syn*()` symlink *un*tions w*r* mo*i*i** to r*quir* *ull r***/writ* p*rmissions (`****k_*ll()`) inst*** o* p*t*-sp**i*i* ****