CVE-2025-0913Golang Go
Medium 5.5
Follow: this CVE · Golang · Golang Go We alert you by email or Slack (account required).
- Priority
- 33
- CVSS 3.1
- 5.5
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 14
- Auth required
- Yes
- Published
- Jun 11, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-59
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Go.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | stdlib |
< 1.23.10 |
1.23.10 |
go get stdlib@v1.23.10 |
| Go | stdlib |
≥ 1.24.0-0 < 1.24.4 |
1.24.4 |
go get stdlib@v1.24.4 |
Per OSV / GitHub Advisories (GO-2025-3750). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | go | < 1.23.10 |
| golang | go | ≥ 1.24.0 < 1.24.4 |
Official sources
References
Links published by the sources. Open them with care.
- go.dev Issue Tracking
- go.dev Issue Tracking
- groups.google.com Mailing List
- pkg.go.dev Vendor Advisory