{"id":"CVE-2025-0913","aliases":["CVE-2025-0913","GO-2025-3750","BIT-GOLANG-2025-0913"],"related":["CGA-455f-g86x-5phg"],"kind":"vulnerability","state":"published","title":"Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"os.OpenFile(path, os.O_CREATE|O_EXCL) se comportaba de forma diferente en sistemas Unix y Windows cuando la ruta de destino era un enlace simbólico pendiente. En sistemas Unix, OpenFile con los indicadores O_CREATE y O_EXCL nunca sigue enlaces simbólicos. En Windows, cuando la ruta de destino era un enlace simbólico a una ubicación inexistente, OpenFile creaba un archivo en esa ubicación. OpenFile ahora siempre devuelve un error cuando los indicadores O_CREATE y O_EXCL están activados y la ruta de destino es un enlace simbólico.","source":"nvd"}],"published":"2025-06-11T16:59:06.000Z","modified":"2026-09-08T08:47:49.476Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":5.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-59"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.23.10","status":"affected"},{"type":"semver","introduced":"1.24.0-0","fixed":"1.24.4","status":"affected"}],"vendor":"Go standard library","product":"syscall","package":"syscall","platforms":["windows"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","fixed":"1.23.10","status":"affected"},{"type":"semver","introduced":"1.24.0-0","fixed":"1.24.4","status":"affected"}],"vendor":"Go standard library","product":"os","package":"os","platforms":["windows"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.23.10"},{"type":"semver","introduced":"1.24.0-0","status":"affected","fixed":"1.24.4"}],"ecosystem":"Go","package":"stdlib","purl":"pkg:golang/stdlib","source":"go"},{"ranges":[{"status":"affected","fixed":"1.23.10"},{"status":"affected","introduced":"1.24.0","fixed":"1.24.4"}],"vendor":"golang","product":"go","cpe":"cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.23.10"},{"type":"semver","introduced":"1.24.0-0","status":"affected","fixed":"1.24.4"}],"ecosystem":"Bitnami","package":"golang","purl":"pkg:bitnami/golang","source":"bitnami"}],"references":[{"url":"https://go.dev/cl/672396","tags":["fix","issue-tracking","report"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://go.dev/issue/73702","tags":["issue-tracking","report"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A","tags":["discussion","mailing-list","web"],"sources":["cvelist","go","nvd","bitnami"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3750","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0913","tags":["web"],"sources":["bitnami"]}],"credits":["Junyoung Park and Dong-uk Kim of KAIST Hacking Lab"],"assigner":"Go","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-06-11T17:35:44.313Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-0913","url":"https://www.cve.org/CVERecord?id=CVE-2025-0913","licence":"CVE Terms of Use","modified":"2025-06-11T17:37:52.111Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3750","url":"https://pkg.go.dev/vuln/GO-2025-3750","licence":"CC-BY-4.0","modified":"2026-02-04T03:28:12.135Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-0913","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0913","licence":"Public domain","modified":"2026-06-17T08:27:21.723Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GOLANG-2025-0913","url":"https://osv.dev/vulnerability/BIT-GOLANG-2025-0913","licence":"Apache-2.0","modified":"2026-09-08T08:47:49.476Z"}],"updatedAt":"2026-11-25T22:58:59.153Z","epss":{"score":0.00327,"percentile":0.2782,"date":"2026-12-01T12:00:22.000Z"}}