CVE-2025-0913
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedos.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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceGo's os.OpenFile with O_CREATE and O_EXCL flags had a cross-platform inconsistency where Windows would follow symlinks and create files at the target location (even if nonexistent), while Unix systems correctly refused to follow symlinks. This has been fixed to always return an error when both flags are set and the target path is a symlink.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 1.23.10>= 1.24.0, < 1.24.4CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check installed Go versionRun `go version` and note the version number (e.g., go1.23.5, go1.24.2)Affected if The version is less than 1.23.10, or greater than or equal to 1.24.0 but less than 1.24.4 (e.g., 1.23.0-1.23.9 or 1.24.0-1.24.3)
-
Identify os.OpenFile usage with O_CREATE and O_EXCLSearch source code for patterns like `os.OpenFile` combined with `os.O_CREATE|os.O_EXCL` or `os.O_CREATE & os.O_EXCL` or the flag values 0x08|0x04Affected if The codebase contains OpenFile calls using both O_CREATE and O_EXCL flags on file paths that may resolve to symlinks
-
Verify symlink presence in file paths on WindowsOn Windows systems, enumerate file paths passed to OpenFile with O_CREATE/O_EXCL and check if any path component is a symbolic link using `dir /L` or PowerShell `Get-Item -Path <path> | Select-Object -ExpandProperty LinkType`Affected if On Windows, any file path passed to OpenFile with O_CREATE and O_EXCL resolves through a symlink (especially to a nonexistent target)
-
Check for cross-platform file creation codeReview code that creates files atomically (common for lock files, pid files, or temporary files) to see if it handles symlinks differently on Windows vs UnixAffected if The code relies on atomic file creation patterns using O_CREATE and O_EXCL and behaves differently on Windows than on Unix systems
You are affected if your Go version falls in the vulnerable ranges (below 1.23.10 or 1.24.0-1.24.3) AND your application uses os.OpenFile with both O_CREATE and O_EXCL flags on file paths that may be or contain symlinks, particularly on Windows.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped1.23.101.24.4
Applications relying on the previous Windows-specific behavior of creating files via dangling symlinks need to be updated to handle the new error or use alternative file creation methods. Upgrade to the patched Go version.
Go 1.23.10 or later (for 1.23.x branch); Go 1.24.4 or later (for 1.24.x branch)
- Check current Go version by running: go version
- Determine which branch you are on (1.23.x or 1.24.x) based on the current version
- If on Go 1.23.x: upgrade to Go 1.23.10 or later (e.g., go1.23.10, go1.23.11, etc.)
- If on Go 1.24.x: upgrade to Go 1.24.4 or later (e.g., go1.24.4, go1.24.5, etc.)
- Download the appropriate installer from https://go.dev/dl/
- Install the new version, which will overwrite the existing Go installation
- Verify the upgrade by running: go version
- Ensure any build pipelines or CI/CD systems are updated to use the new Go version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation2.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,832.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-0913 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-0913 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data