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 (22.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 22nd percentile — 22.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: +0.000
Affected products
- Golang Go
- Go Standard Library OS — versions 0, 1.24.0-0
- Go Standard Library Syscall — versions 0, 1.24.0-0
- Microsoft Windows
Weakness classification (CWE)
Public proof-of-concept exploits
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)
Frequently asked questions
- What is CVE-2025-0913?
- CVE-2025-0913 is a medium-severity vulnerability in Golang Go, classified under Improper Link Resolution Before File Access. CVSS score: 5.5/10. Published 2025-06-11.
- How severe is CVE-2025-0913?
- Medium severity. CVSS v3 base score is 5.5 out of 10.
- Is CVE-2025-0913 known to be exploited?
- 6 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.