CVE-2025-0913
Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall
Overview
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 flags are both set and the target path is a symlink.
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-59
Affected packages · 2
Operating systems · 86 fixes
Photon OS 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 5.0 | go | 1.26.3-1.ph5 |
SUSE Linux Enterprise 4 releases · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-23 +2 | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| 15.4 | go1-24 +2 | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| 15.4 | go1-24-openssl +2 | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| 15.5 | go1-23 +2 | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| 15.5 | go1-24 +2 | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| 15.5 | go1-24-openssl +2 | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
8 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.24.4-r0 |
| 3.23 | go | 1.24.4-r0 |
| 3.24 | go | 1.24.4-r0 |
| edge | go | 1.24.4-r0 |
chainguard 1 release · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 | |
| go-1-20 | 1.20.14-r9 | |
| go-1-22 | 1.22.12-r8 | |
| newrelic-fluent-bit-output | 2.4.0-r5 | |
| nvidia-nsight-compute-12-8 | 2025.1.1.2-r7 | |
| nvidia-nsight-compute-12-9 | 2025.2.1.3-r8 |
3 more rows
echo 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| golang-1-23 | 1.23.10 | |
| golang-1-24 | 1.24.4 |
minimos 1 release · 47 packages
| Release | Package | Fixed in |
|---|---|---|
| pombump | 0.0.14-r1 | |
| prometheus-alertmanager | 0.28.1-r2 | |
| kwok | 0.7.0-r1 | |
| solr-operator-0-8 | 0.8.1-r1 | |
| prometheus-operator | 0.83.0-r1 | |
| ollama | 0.9.0-r1 |
41 more rows
openSUSE 1 release · 4 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | govulncheck-vulndb | 0.0.20250612T141001-1.1 | openSUSE-SU-2025:15225-1 |
| Tumbleweed | kubecolor | 0.5.2-1.1 | openSUSE-SU-2025:15586-1 |
| Tumbleweed | go1-23 +3 | 1.23.10-1.1 | openSUSE-SU-2025:15223-1 |
| Tumbleweed | go1-24 +3 | 1.24.4-1.1 | openSUSE-SU-2025:15224-1 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 20.04-ESM | golang-1-18 +2 | affected |
wolfi 1 release · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 | |
| go-1-20 | 1.20.14-r9 | |
| go-1-22 | 1.22.12-r8 | |
| newrelic-fluent-bit-output | 2.4.0-r5 |
References
- go.dev https://go.dev/cl/672396
- go.dev https://go.dev/issue/73702
- groups.google.com https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-0913
- pkg.go.dev https://pkg.go.dev/vuln/GO-2025-3750
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-0913
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.