CVE-2025-61731
Beschrijving NL
Het maken van een schadelijk bestand met cmd/go kan leiden tot het schrijven naar een door een aanvaller gecontroleerd bestand met gedeeltelijke controle over de inhoud van het bestand. De richtlijn '#cgo pkg-config:' in een Go-bronbestand biedt opdrachtregelargumenten die aan het Go-commando pkg-config moeten worden doorgegeven. Een aanvaller kan een argument "--log-file" aan deze instructie toevoegen, waardoor pkg-config naar een door de aanvaller gecontroleerde locatie schrijft.
Origineel (Engels) tonen
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.
Vendors
Affected products
References
- go.dev
- go.dev
- groups.google.com
- pkg.go.dev
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com