CVE-2025-0913Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall
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.
What to do
Fixed builds are available from Alpine, Go: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | golang-1.23 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 26.04 | golang-1.24 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 25.10 | golang-1.23 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 25.10 | golang-1.24 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 24.04 | golang-1.21 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 24.04 | golang-1.22 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 24.04 | golang-1.23 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 24.04 | golang-1.24 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 22.04 | golang-1.17 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 22.04 | golang-1.18 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 22.04 | golang-1.20 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 22.04 | golang-1.21 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 22.04 | golang-1.22 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 22.04 | golang-1.23 | Will not fix this issue only affects Go on Windows Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list… | UBUNTU-CVE-2025-0913 | |
| Ubuntu 22.04 | golang-1.24 | Under investigation | UBUNTU-CVE-2025-0913 | |
| Ubuntu 20.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 20.04 | golang-1.14 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 20.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 20.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 20.04 | golang-1.20 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 20.04 | golang-1.21 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 20.04 | golang-1.22 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 18.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 18.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 18.04 | golang-1.16 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 18.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 18.04 | golang-1.8 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 18.04 | golang-1.9 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 16.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 16.04 | golang-1.13 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 16.04 | golang-1.18 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 16.04 | golang-1.6 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Ubuntu 14.04 | golang-1.10 | Fix pending | UBUNTU-CVE-2025-0913 | |
| Alpine Linux 3.24 | go | Fixed | 1.24.4-r0 | ALPINE-CVE-2025-0913 |
| Alpine Linux 3.23 | go | Fixed | 1.24.4-r0 | ALPINE-CVE-2025-0913 |
| Alpine Linux 3.22 | go | Fixed | 1.24.4-r0 | ALPINE-CVE-2025-0913 |
| Go library | stdlib | Fixed | 1.24.4 | GO-2025-3750 |
What the vendor says
As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Go standard library syscall: affected: before 1.23.10, 1.24.0-0 to before 1.24.4; fixed in
1.23.10,1.24.4 - Go standard library os: affected: before 1.23.10, 1.24.0-0 to before 1.24.4; fixed in
1.23.10,1.24.4
References
- https://go.dev/cl/672396
- https://go.dev/issue/73702
- https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A
- https://pkg.go.dev/vuln/GO-2025-3750
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.