Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
Go standard library syscall < 1.23.10, 1.24.0-0 – < 1.24.4 1.23.10
Go standard library os < 1.23.10, 1.24.0-0 – < 1.24.4 1.23.10

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS golang-1.23 +1 No fix yet —
Ubuntu 25.10 golang-1.23 +1 No fix yet —
Ubuntu 24.04 LTS golang-1.21 +3 No fix yet —
Ubuntu 22.04 LTS golang-1.13 +7 No fix yet —
Ubuntu 20.04 LTS golang-1.13 +5 No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS golang-1.8 +2 No fix yet —
Ubuntu 16.04 LTS golang-1.6 +1 No fix yet —
Ubuntu 14.04 LTS golang-1.10 No fix yet —
Ubuntu Pro 20.04 LTS golang-1.16 No fix yet —
Ubuntu Pro 18.04 LTS golang-1.13 +2 No fix yet —
Ubuntu Pro 16.04 LTS golang-1.13 +1 No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLES 15 SP7 go1.23-openssl 1.23.12-150600.13.9.1 SUSE-SU-2025:03159-1
SLES 15 SP7 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLES 15 SP7 go1.24-openssl 1.24.6-150600.13.9.1 SUSE-SU-2025:03158-1
SLES 15 SP6 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLES 15 SP6 go1.23-openssl 1.23.12-150600.13.9.1 SUSE-SU-2025:03159-1
SLES 15 SP6 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLES 15 SP6 go1.24-openssl 1.24.6-150600.13.9.1 SUSE-SU-2025:03158-1
SLES 15 SP5 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLES 15 SP5 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLES 15 SP5 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
SLES 15 SP4 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLES 15 SP4 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLES 15 SP4 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
SLES 15 SP3 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLES 15 SP3 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLES 15 SP3 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLES for SAP 15 SP5 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLES for SAP 15 SP5 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
SLES for SAP 15 SP4 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLES for SAP 15 SP4 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLES for SAP 15 SP4 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
SLES for SAP 15 SP3 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLES for SAP 15 SP3 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLES for SAP 15 SP3 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
SLE HPC 15 SP5 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLE HPC 15 SP5 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLE HPC 15 SP5 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
SLE HPC 15 SP4 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLE HPC 15 SP4 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLE HPC 15 SP4 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
SLE HPC 15 SP3 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SLE HPC 15 SP3 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SLE HPC 15 SP3 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
SUSE Enterprise Storage 7.1 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
SUSE Enterprise Storage 7.1 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
SUSE Enterprise Storage 7.1 go1.24-openssl 1.24.4-150000.1.9.1 SUSE-SU-2025:02120-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go1.23 1.23.10-1.1 openSUSE-SU-2025:15223-1
openSUSE Tumbleweed go1.24 1.24.4-1.1 openSUSE-SU-2025:15224-1
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250612T141001-1.1 openSUSE-SU-2025:15225-1
openSUSE Tumbleweed kubecolor 0.5.2-1.1 openSUSE-SU-2025:15586-1
openSUSE Leap 15.6 go1.23 1.23.10-150000.1.34.1 SUSE-SU-2025:01848-1
openSUSE Leap 15.6 go1.23-openssl 1.23.12-150600.13.9.1 SUSE-SU-2025:03159-1
openSUSE Leap 15.6 go1.24 1.24.4-150000.1.26.1 SUSE-SU-2025:01846-1
openSUSE Leap 15.6 go1.24-openssl 1.24.6-150600.13.9.1 SUSE-SU-2025:03158-1
ReleasePackageFixed inAdvisory
Alpine v3.24 go 1.24.4-r0 —
Alpine v3.23 go 1.24.4-r0 —
Alpine v3.22 go 1.24.4-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 golang No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling go-1.20 1.20.14-r9 —
Wolfi rolling go-1.22 1.22.12-r8 —
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —
Wolfi rolling newrelic-fluent-bit-output 2.4.0-r5 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go stdlib < 1.23.10 · >= 1.24.0-0, < 1.24.4 1.23.10, 1.24.4 GO-2025-3750

Advisories 10

References