CVE-2025-61731 Arbitrary file write using cgo pkg-config directive in cmd/go
설명
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.
영향 받는 제품 제품 1개
-
해결 버전 있음
Go toolchain
cmd/go
영향 받는 버전
- 1.24.12 미만
- 1.25.0 이상 1.25.6 미만
해결 버전
- 1.24.12 이상
- 1.25.6 이상