CVE-2025-0913
Last modified
CVE-2025-0913 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Golang | Go | < 1.23.10 |
| Golang | Go | >= 1.24.0, < 1.24.4 |
References
- https://go.dev/cl/672396Issue Tracking
- https://go.dev/issue/73702Issue Tracking
- https://pkg.go.dev/vuln/GO-2025-3750Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-0913?
How severe is CVE-2025-0913?
How do I fix CVE-2025-0913?
Are you affected by CVE-2025-0913?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
