{"schema_version":"1.9.0","id":"BIT-golang-2025-0913","published":"2025-06-14T05:46:34.191Z","modified":"2026-09-08T08:47:49.476528434Z","aliases":["CVE-2025-0913","GO-2025-3750"],"summary":"Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall","details":"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.","affected":[{"package":{"name":"golang","ecosystem":"Bitnami","purl":"pkg:bitnami/golang"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.23.10"},{"introduced":"1.24.0-0"},{"fixed":"1.24.4"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2025-0913.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"}]}],"references":[{"type":"REPORT","url":"https://go.dev/cl/672396"},{"type":"REPORT","url":"https://go.dev/issue/73702"},{"type":"DISCUSSION","url":"https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0913"},{"type":"ADVISORY","url":"https://pkg.go.dev/vuln/GO-2025-3750"}],"database_specific":{"cpes":["cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"],"severity":"Medium"}}