You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Symlink race in install -D directory creation #10013
The -D flag creates parent directories using create_dir_all() on pathname, then installs the file via pathname-based I/O. Neither operation anchors traversal to a directory descriptor.
An attacker with concurrent write access to the destination tree can replace a path component with a symlink between directory creation and file install, redirecting the write to an arbitrary location. This is exploitable when install -D runs privileged and writes to attacker-influenced paths.
Activity
abendrothj commentedon Jan 9, 2026
Getting started on this one :)
fix(install): prevent symlink race condition in install -D (fixes uut…