Security mailing lists by PureSourceCode

CVE-2025-0913

MEDIUM 5.5CVSS 3.1

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

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.

Published
11 Jun 2025
Last modified
17 Jun 2026
Assigned by
security@golang.org
NVD status
Analyzed
Weakness
CWE-59
Also known as
BIT-golang-2025-0913GO-2025-3750
Sources
NVDJSONOSV GO-2025-3750JSON

Scores

SourceScored byVersionScoreVector / decision
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
< 1.23.10 1.23.10
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
>= 1.24.0, < 1.24.4 1.24.4
OSV Go stdlib < 1.23.10; >= 1.24.0-0, < 1.24.4 1.23.10, 1.24.4

References

History

  • 25 Nov 2026 20:58 UTC · NVD: first stored (published 11 Jun 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Jun 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.