CVE-2025-0913
published medium CVSS 3.1 · 5.5Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Go standard library | — | syscall0 to < 1.23.10 · 1.24.0-0 to < 1.24.4 · Other versions: unaffected · Platforms: windows | Affected | Not stated | Go |
| Go standard library | — | os0 to < 1.23.10 · 1.24.0-0 to < 1.24.4 · Other versions: unaffected · Platforms: windows | Affected | Not stated | Go |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Alpine Linux | edge | go | Fixed | 1.24.4-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP3 | go1.23aarch64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| Alpine Linux | v3.22 | go | Fixed | 1.24.4-r0 | Package fix record |
| Alpine Linux | v3.23 | go | Fixed | 1.24.4-r0 | Package fix record |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.24 | go | Fixed | 1.24.4-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP3 | go1.23ppc64le | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23s390x | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23x86_64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23-docaarch64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23-docppc64le | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23-docs390x | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23-docx86_64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23-raceaarch64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23-raceppc64le | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23-races390x | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.23-racex86_64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24aarch64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24ppc64le | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24s390x | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24x86_64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-docaarch64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-docppc64le | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-docs390x | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-docx86_64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-opensslaarch64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-opensslppc64le | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-openssls390x | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-opensslx86_64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-openssl-docaarch64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-openssl-docppc64le | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-openssl-docs390x | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-openssl-docx86_64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-openssl-raceaarch64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-openssl-raceppc64le | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-openssl-races390x | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-openssl-racex86_64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-raceaarch64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-raceppc64le | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-races390x | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP3 | go1.24-racex86_64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23aarch64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23ppc64le | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23s390x | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23x86_64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23-docaarch64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23-docppc64le | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23-docs390x | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23-docx86_64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23-raceaarch64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23-raceppc64le | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23-races390x | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.23-racex86_64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24aarch64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24ppc64le | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24s390x | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24x86_64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-docaarch64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-docppc64le | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-docs390x | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-docx86_64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-opensslaarch64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-opensslppc64le | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-openssls390x | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-opensslx86_64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-openssl-docaarch64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-openssl-docppc64le | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-openssl-docs390x | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-openssl-docx86_64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-openssl-raceaarch64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-openssl-raceppc64le | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-openssl-races390x | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-openssl-racex86_64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-raceaarch64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-raceppc64le | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-races390x | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP4 | go1.24-racex86_64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23aarch64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23ppc64le | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23s390x | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23x86_64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23-docaarch64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23-docppc64le | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23-docs390x | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23-docx86_64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23-raceaarch64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23-raceppc64le | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23-races390x | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.23-racex86_64 | Advisory build | 1.23.10-150000.1.34.1 | SUSE-SU-2025:01848-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24aarch64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24ppc64le | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24s390x | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24x86_64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24-docaarch64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24-docppc64le | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24-docs390x | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24-docx86_64 | Advisory build | 1.24.4-150000.1.26.1 | SUSE-SU-2025:01846-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24-opensslaarch64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24-opensslppc64le | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24-openssls390x | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
| SUSE / openSUSE | SLE-15-SP5 | go1.24-opensslx86_64 | Advisory build | 1.24.4-150000.1.9.1 | SUSE-SU-2025:02120-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Go standard library | syscall | 0 to < 1.23.10 (affected · semver)1.24.0-0 to < 1.24.4 (affected · semver)Default: unaffected | Go · cna |
| Go standard library | os | 0 to < 1.23.10 (affected · semver)1.24.0-0 to < 1.24.4 (affected · semver)Default: unaffected | Go · cna |
Weaknesses
1- CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')
References
4Provider assertions
2Go · cna
Inconsistent handling of O_CREATE|O_EXCL on Unix and Windows in os in syscall
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- cb0711ad74ae3bfdbd88a4264c7abeb69cc85991cd780c3803132331c7863f43
- Ingested
- 23 Sep 2026, 08:35:30 UTC
- Source record
- Official CVE record