Skip to content
Fencer Vulns
medium 5.5

CVE-2025-0913 json

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

published 2025-06-11 16 mo ago modified 2026-09-08 2 mo ago also BIT-golang-2025-0913 , EUVD-2025-18139 , GO-2025-3750

cvss
5.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 25%
public exploits
0
none known

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.

Patch / fix

  • bitnami golang 1.23.10, 1.24.4
  • go stdlib 1.23.10, 1.24.4
  • Go standard library syscall 1.23.10, 1.24.4
  • Go standard library os 1.23.10, 1.24.4
  • go1.23-openssl SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.23.12-150600.13.9.1
  • go1.24-openssl SLE Module for Development Tools 15 SP7, SLE Module for Development Tools 15 SP6, openSUSE Leap 15.6 1.24.6-150600.13.9.1
  • go1.24-openssl SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +9 more 1.24.4-150000.1.9.1
  • go1.23 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 1.23.10-150000.1.34.1
  • go1.24 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 1.24.4-150000.1.26.1

suse advisories SUSE-SU-2025:03159-1SUSE-SU-2025:03158-1SUSE-SU-2025:02120-1SUSE-SU-2025:01848-1SUSE-SU-2025:01846-1

  • kubecolor openSUSE Tumbleweed 0.5.2-1.1
  • go1.23 openSUSE Tumbleweed 1.23.10-1.1
  • go1.24 openSUSE Tumbleweed 1.24.4-1.1
  • govulncheck-vulndb openSUSE Tumbleweed 0.0.20250612T141001-1.1

opensuse advisories openSUSE-SU-2025:15586-1openSUSE-SU-2025:15223-1openSUSE-SU-2025:15224-1openSUSE-SU-2025:15225-1

  • go Alpine 3.24, Alpine 3.23, Alpine 3.22 1.24.4-r0

alpine advisories ALPINE-CVE-2025-0913

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
16 mo ago

Exploit prediction

0.33% chance of exploitation in the next 30 days, higher than 25% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
CNA 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
OSV 3.1 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
bitnami golang
<1.23.10
>=1.24.0-0, <1.24.4
1.23.10
1.24.4
go stdlib
<1.23.10
>=1.24.0-0, <1.24.4
1.23.10
1.24.4

Affected products

  • Go standard library syscall
  • Go standard library os

Classification

Weakness
  • CWE-59 Improper Link Resolution Before File Access

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.