CVE-2024-8244: Go standard library path/filepath · Time-of-check Time-of-use (TOCTOU) Race Condition
Affects Go standard library path/filepathSource CVE Database V5
Not known to be exploited · CVSS 3.7 Low.
Data as of 26 Oct 2026, 14:05 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 10% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Aug 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
- Monitor the Go project for official patches addressing CVE-2024-8244 and apply them promptly once released.
- Until patched, avoid using filepath.Walk and WalkDir on untrusted or user-controlled directory trees where symbolic link manipulation is possible.
- Implement additional application-level checks to detect and prevent symbolic link traversal during directory walks, such as verifying file metadata before and after traversal steps.
- Use alternative directory traversal methods or libraries that provide atomic or race-condition-resistant operations if available.
- Restrict file system permissions to limit the ability of untrusted users or processes to create or modify symbolic links in directories processed by Go applications.
- Employ containerization or sandboxing to isolate file system operations and reduce the attack surface.
- Conduct code reviews and security testing focused on file system access patterns in Go applications to identify and remediate potential TOCTOU issues.
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.