CVE-2025-0913

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

MEDIUM
5.5
CVSS Score
Published: June 11, 2025 at 05:17 PM UTC
Updated: June 17, 2026 at 08:27 AM UTC
3 products affected across 2 vendorsGoOSSyscall· also runs on 1 platform

Using syscall by Go standard library?

Get instant alerts when new vulnerabilities affect syscall - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.23.101.24.0 ≤ v < 1.24.4
Affected range stops below 1.23.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.24.4, so it looks safe — our inference, not a vendor statement
microsoft-windows (environment)
v < 1.23.101.24.0-0 ≤ v < 1.24.41.24.0-0
Affected range stops below 1.23.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.24.4, so it looks safe — our inference, not a vendor statement
v < 1.23.101.24.0-0 ≤ v < 1.24.41.24.0-0
Affected range stops below 1.23.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.24.4, so it looks safe — our inference, not a vendor statement

Runs on — not affected

The affected product only carries this flaw when running on these platforms. The platforms themselves are not vulnerable.

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-59

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card