Vulnerability · Published Aug 6, 2025 · Assigned by Go

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

Low 3.7

In plain English

A low-severity security flaw in path/filepath from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities).

Severity (CVSS 3.1)3.7Low
Exploit odds (30 days)0.2%top 87.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-1.19no fix listedDEBIAN-CVE-2024-8244
Debian:13golang-1.24no fix listedDEBIAN-CVE-2024-8244
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2024-8244
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2024-8244
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2024-8244
Ubuntu:22.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2024-8244
Ubuntu:24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2024-8244
Ubuntu:22.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2024-8244
Ubuntu:24.04:LTSgolang-1.22no fix listedUBUNTU-CVE-2024-8244
Ubuntu:22.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2024-8244
Ubuntu:24.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2024-8244
Ubuntu:25.10golang-1.23no fix listedUBUNTU-CVE-2024-8244
Ubuntu:26.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2024-8244
Ubuntu:22.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2024-8244
Ubuntu:24.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2024-8244
Ubuntu:25.10golang-1.24no fix listedUBUNTU-CVE-2024-8244
Ubuntu:26.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2024-8244

Affected products (as reported)

VendorProductVersions
Go standard library path/filepath see references

References