Vulnerability in Golang Go
CVE-2025-0913
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.003, 26.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Standard Library OS — versions 0, 1.24.0-0
- Go Standard Library Syscall — versions 0, 1.24.0-0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 6 other repositories (8-cm/kube-dump, ARPSyndicate/cve-scores, fkie-cad/nvd-json-data-feeds, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- go.dev/cl/672396 (Issue Tracking)
- go.dev/issue/73702 (Issue Tracking)
- groups.google.com/g/golang-announce/c/ufZ8WpEsA3A (Mailing List)
- pkg.go.dev/vuln/GO-2025-3750 (Vendor Advisory)