CVE-2024-8244 — Walk/WalkDir in path/filepath susceptible to symlink race
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 …
Published: 2025-08-06 · CVSS: 3.7 · CVSS 3.1
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.
Source: CVE Program · Revision 8b16575c39f1e1810c5e863010da073d2d3285e7