Live threats

All CVEs / Golang

CVE-2025-0913Golang Go

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.3%
probability of exploitation in 30 days · percentile 14
Auth required
Yes
Published
Jun 11, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-59
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go stdlib < 1.23.10 1.23.10 go get stdlib@v1.23.10
Go stdlib ≥ 1.24.0-0 < 1.24.4 1.24.4 go get stdlib@v1.24.4

Per OSV / GitHub Advisories (GO-2025-3750). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.23.10
golanggo≥ 1.24.0 < 1.24.4

Official sources

References

Links published by the sources. Open them with care.