{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-0913","id":"CVE-2025-0913","title":"Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall","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 f","descriptionLong":"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":"2025-06-11T17:17:25.606Z","updated":"2026-10-28T02:30:48.072356977Z","reserved":"2025-01-30T21:52:33.447Z","status":"Analyzed","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"}],"rating":"medium","products":["Go standard library syscall","Go standard library os"],"affectedProducts":[{"vendor":"Go standard library","product":"syscall","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.23.10","status":"affected","versionType":"semver"},{"version":"1.24.0-0","lessThan":"1.24.4","status":"affected","versionType":"semver"}],"platforms":["windows"]},{"vendor":"Go standard library","product":"os","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.23.10","status":"affected","versionType":"semver"},{"version":"1.24.0-0","lessThan":"1.24.4","status":"affected","versionType":"semver"}],"platforms":["windows"]}],"packages":[{"ecosystem":"Go","name":"stdlib","purl":"pkg:golang/stdlib","ranges":["<1.23.10",">=1.24.0-0 <1.24.4"],"fixed":["1.23.10","1.24.4"],"advisory":"GO-2025-3750"}],"cwes":["CWE-59"],"aliases":["BIT-golang-2025-0913","GO-2025-3750"],"references":[{"url":"https://go.dev/cl/672396","tags":["Issue Tracking","web","fix"]},{"url":"https://go.dev/issue/73702","tags":["Issue Tracking","web","report"]},{"url":"https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A","tags":["Mailing List","web"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3750","tags":["Vendor Advisory","web"]},{"url":"https://pkg.go.dev","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/0xxx/CVE-2025-0913.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0913","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00327,"epssPercentile":0.26314,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-0913","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-0913","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-0913","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-0913","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}