# CVE-2025-0913: Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2025-06-11T16:59:06.000Z
- Modified: 2026-09-08T08:47:49.476Z
- Also known as: GO-2025-3750, BIT-GOLANG-2025-0913
- Related: CGA-455f-g86x-5phg
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## Description

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.

(As written by CVE List.)

## Affected

- syscall: before 1.23.10; from 1.24.0-0 before 1.24.4
- os: before 1.23.10; from 1.24.0-0 before 1.24.4
- stdlib (Go): before 1.23.10; from 1.24.0-0 before 1.24.4
- golang go: before 1.23.10; from 1.24.0 before 1.24.4
- golang (Bitnami): before 1.23.10; from 1.24.0-0 before 1.24.4

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://go.dev/cl/672396> (fix, issue-tracking, report)
- <https://go.dev/issue/73702> (issue-tracking, report)
- <https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A> (discussion, mailing-list, web)
- <https://pkg.go.dev/vuln/GO-2025-3750> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-0913> (web)

## Sources

- CVE List: [CVE-2025-0913](https://www.cve.org/CVERecord?id=CVE-2025-0913), CVE Terms of Use, modified 2025-06-11
- Go Vulnerability Database: [GO-2025-3750](https://pkg.go.dev/vuln/GO-2025-3750), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-0913](https://nvd.nist.gov/vuln/detail/CVE-2025-0913), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-0913](https://osv.dev/vulnerability/BIT-GOLANG-2025-0913), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-0913 · Whole record: https://cve.day/CVE-2025-0913.json · Rebuilt by cve.day 2026-11-25T22:58:59.153Z
