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

Tue, 12 Aug 2025 08:00:00 +0000

Type Values Removed Values Added
First Time appeared Golang
Golang go
Vendors & Products Golang
Golang go

Thu, 07 Aug 2025 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-367
References
Metrics threat_severity

None

threat_severity

Moderate


Wed, 06 Aug 2025 21:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 06 Aug 2025 15:45:00 +0000

Type Values Removed Values Added
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.
Title Walk/WalkDir in path/filepath susceptible to symlink race
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published: 2025-08-06T15:32:27.357Z

Updated: 2025-08-06T20:27:15.152Z

Reserved: 2024-08-27T19:41:45.564Z

Link: CVE-2024-8244

cve-icon Vulnrichment

Updated: 2025-08-06T20:27:11.938Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-08-06T16:15:28.080

Modified: 2025-08-06T21:15:28.533

Link: CVE-2024-8244

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-08-06T15:32:27Z

Links: CVE-2024-8244 - Bugzilla