CVEfocus › CVE database › CVE-2025-0913

CVE-2025-0913Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall

CVSS 5.5 MediumEPSS 0.3% (higher than 14% of CVEs)Published 2025-06-11Updated 2025-06-11Assigner: Go

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

4Fixed
19Fix pending
1Under investigation
13Will not fix
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-1.23Will 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.04golang-1.24Will 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.10golang-1.23Will 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.10golang-1.24Will 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.04golang-1.21Will 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.04golang-1.22Will 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.04golang-1.23Will 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.04golang-1.24Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 22.04golang-1.17Will 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.04golang-1.18Will 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.04golang-1.20Will 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.04golang-1.21Will 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.04golang-1.22Will 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.04golang-1.23Will 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.04golang-1.24Under investigationUBUNTU-CVE-2025-0913
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 20.04golang-1.21Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 20.04golang-1.22Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2025-0913
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2025-0913
Alpine Linux 3.24goFixed1.24.4-r0ALPINE-CVE-2025-0913
Alpine Linux 3.23goFixed1.24.4-r0ALPINE-CVE-2025-0913
Alpine Linux 3.22goFixed1.24.4-r0ALPINE-CVE-2025-0913
Go librarystdlibFixed1.24.4GO-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.

References

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.