---
cve: "CVE-2025-61731"
severity: "HIGH"
cvss: 7.8
epss: "53%"
vendor: "Go toolchain"
kev: false
exploited: false
published: "2026-01-28 20:16:10"
tags: [cve, security, high]
source: tsecurity.de CVE-Dossier
exported: "2026-09-03T19:53:32+02:00"
---

# CVE-2025-61731

> 7.8 HIGH

## Beschreibung

Building a malicious file with cmd/go can cause can cause a write to an attacker-controlled file with partial control of the file content. The "#cgo pkg-config:" directive in a Go source file provides command-line arguments to provide to the Go pkg-config command. An attacker can provide a "--log-file" argument to this directive, causing pkg-config to write to an attacker-controlled location.

## CVSS-Vektor

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

| 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 | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Hoch | bad |

## Patch verfügbar (OSV)

- 63a1b82d1e68ddd87652467303901593efe0ff11 (Commit)
- 69801b25b9624c3a678ef87d30771861e7bba51f (Commit)

## Referenzen

- <https://go.dev/cl/736711>
- <https://go.dev/issue/77100>
- <https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc>
- <https://pkg.go.dev/vuln/GO-2026-4339>
- <https://access.redhat.com/errata/RHSA-2026:12118>
- <https://access.redhat.com/errata/RHSA-2026:12282>
- <https://access.redhat.com/errata/RHSA-2026:13736>
- <https://access.redhat.com/errata/RHSA-2026:14100>
- <https://access.redhat.com/errata/RHSA-2026:14774>
- <https://access.redhat.com/errata/RHSA-2026:15091>
- <https://access.redhat.com/errata/RHSA-2026:17598>
- <https://access.redhat.com/errata/RHSA-2026:20088>

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