CVE-2025-0913Golang Go Improper Link Resolution Before File Access ('Link Following')
NVDCVSS scored by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Vulnerability Summary
os.OpenFile(path, os.O_CREATE|O_EXCL) behaved differently on Unix and Windows systems when the target path was a dangling symlink. On Unix systems, OpenFile with O_CREATE and O_EXCL flags never follows symlinks. On Windows, when the target path was a symlink to a nonexistent location, OpenFile would create a file in that location. OpenFile now always returns an error when the O_CREATE and O_EXCL flags are both set and the target path is a symlink.
CVSS v3.1 Base Metrics — Score 5.5 (MEDIUM)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:NAttack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityHigh
AvailabilityNone
Affected & Patched Versions
- Golang Go < 1.23.10
- Golang Go >= 1.24.0 and < 1.24.4
- Golang Go 1.23.10
- Golang Go 1.24.4
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run Golang Go and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Jun 11, 2025Published
- Aug 8, 2025Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Golang Go CVEsYou are reading CVE-2025-0913. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Issue Trackinghttps://go.dev/cl/672396
- Issue Trackinghttps://go.dev/issue/73702
- Referencehttps://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A
- Vendor Advisoryhttps://pkg.go.dev/vuln/GO-2025-3750
Data last checked: Nov 24, 2026 19:14 UTC