CVE Watchtower

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.
Severity Level
MEDIUM(5.5)
Published Date
Jun 11, 2025
Last Modified
Aug 8, 2025
Exploitation Status
No confirmed exploitation yet
Root Weakness (CWE)
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
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:N
Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityHigh
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • Golang Go < 1.23.10
  • Golang Go >= 1.24.0 and < 1.24.4
Patched Versions
  • 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.

  1. Check whether you run Golang Go and which version.
  2. 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 alerts

Data last checked: Nov 24, 2026 19:14 UTC