---
cve: "CVE-2025-0913"
severity: "MEDIUM"
cvss: 5.5
epss: "26%"
vendor: "Go standard library"
kev: false
exploited: false
published: "2025-06-11 18:15:24"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-10T03:14:51+02:00"
---

# CVE-2025-0913

> 5.5 MEDIUM

## Beschreibung

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.

## CVSS-Vektor

```
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Gering | warn |
| UI Interaktion | Keine | bad |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Keine | good |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Keine | good |

## Patch verfügbar (OSV)

- d375ae50633cdf1cd8536f2a199c382f9053b638 (Commit)
- 6796ebb2cb66b316a07998cdcd69b1c486b8579e (Commit)

## Referenzen

- <https://go.dev/cl/672396>
- <https://go.dev/issue/73702>
- <https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A>
- <https://pkg.go.dev/vuln/GO-2025-3750>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2025-0913) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
