CVE-2025-0913

published 11 Jun 2025 · updated 3 Sep 2026

Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.23.10 and 1.24.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.23.10, >=1.24.0-0 <1.24.41.23.10, 1.24.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-0913 severity on Zeptric[![CVE-2025-0913](https://zeptric.io/badge/cve/CVE-2025-0913.svg)](https://zeptric.io/cve/CVE-2025-0913)