Walk/WalkDir in path/filepath susceptible to symlink race
Go standard library path/filepath
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Go standard library path/filepath | — | No fix yet |
Original description
The filepath.Walk and filepath.WalkDir functions are documented as not following symbolic links, but both functions are susceptible to a TOCTOU (time of check/time of use) race condition where a portion of the path being walked is replaced with a symbolic link while the walk is in progress.
From the CVE record · Go