CVE-2024-8244 Walk/WalkDir in path/filepath susceptible to symlink race
Attackers can exploit a race condition in Go's filepath.Walk to bypass symlink restrictions, potentially accessing unintended files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-8244?
CVE-2024-8244 is a low-severity vulnerability in Go standard library path/filepath, published on 6 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-8244?
How do I fix CVE-2024-8244?
Apply the vendor's patch.
Is CVE-2024-8244 being exploited?
There is no known exploitation of CVE-2024-8244 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2024-8244, ECHO-cf03-9570-1659, GHSA-v9vr-w93g-qph7, UBUNTU-CVE-2024-8244.