MEDIUM · CVSS 5.5 Published: 2025-06-11
CVE-2025-0913 — Technical Security Advisory & CVSS Profile
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.
Technical Metadata
| Identifier | CVE-2025-0913 |
|---|---|
| Base Severity / Score | MEDIUM (5.5 / 10.0) |
| CVSS Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Weakness Classification | CWE-59 |
| Archive Categories | MEDIUM Advisories · 2025 Index |
Operational Mitigation Guidance
Schedule vendor updates during routine patching windows and verify whether affected code paths are reachable in your deployment configuration. For architectural isolation principles, review per-process namespace isolation.
Upstream References
- https://go.dev/cl/672396
- https://go.dev/issue/73702
- https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A
Related Security Advisories
CVE-2025-0912 CRITICAL 9.8
CVE-2025-0915 MEDIUM 5.3
CVE-2025-0917 MEDIUM 5.5
CVE-2025-0923 MEDIUM 5.3
CVE-2025-0926 MEDIUM 5.9
CVE-2025-0932 MEDIUM 4.3
CVE-2025-0934 MEDIUM 6.3