Skip to main content
VulnerabilityPublished Updated

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

0

Not known to be exploited · CVSS 3.7 Low.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
3.7Low
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Aug 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

  1. Monitor the Go project for official patches addressing CVE-2024-8244 and apply them promptly once released.
  2. Until patched, avoid using filepath.Walk and WalkDir on untrusted or user-controlled directory trees where symbolic link manipulation is possible.
  3. 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.
  4. Use alternative directory traversal methods or libraries that provide atomic or race-condition-resistant operations if available.
  5. 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.
  6. Employ containerization or sandboxing to isolate file system operations and reduce the attack surface.
  7. 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.

References

Community reviews

Loading reviews…