CVE-2025-0913
MEDIUM 5.5CVSS 3.1Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall
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
- 11 Jun 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security@golang.org
- NVD status
- Analyzed
- Weakness
- CWE-59
- Also known as
- BIT-golang-2025-0913GO-2025-3750
- Sources
- NVDJSONOSV GO-2025-3750JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
< 1.23.10 | 1.23.10 |
| NVD | golang | gocpe:2.3:a:golang:go:*:*:*:*:*:*:*:* |
>= 1.24.0, < 1.24.4 | 1.24.4 |
| OSV | Go | stdlib | < 1.23.10; >= 1.24.0-0, < 1.24.4 | 1.23.10, 1.24.4 |
References
- https://go.dev/cl/672396 · Issue Tracking, FIX
- https://go.dev/issue/73702 · Issue Tracking, REPORT
- https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A · Mailing List, WEB
- https://pkg.go.dev/vuln/GO-2025-3750 · Vendor Advisory
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 11 Jun 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Jun 2025)