| { |
| "schema_version": "1.3.1", |
| "id": "GO-2026-4339", |
| "modified": "0001-01-01T00:00:00Z", |
| "published": "0001-01-01T00:00:00Z", |
| "aliases": [ |
| "CVE-2025-61731", |
| "CVE-2025-61731" |
| ], |
| "summary": "Arbitrary file write using cgo pkg-config directive in cmd/go", |
| "details": "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.\n\nThe \"#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.", |
| "affected": [ |
| { |
| "package": { |
| "name": "toolchain", |
| "ecosystem": "Go" |
| }, |
| "ranges": [ |
| { |
| "type": "SEMVER", |
| "events": [ |
| { |
| "introduced": "0" |
| }, |
| { |
| "fixed": "1.24.12" |
| }, |
| { |
| "introduced": "1.25.0" |
| }, |
| { |
| "fixed": "1.25.6" |
| } |
| ] |
| } |
| ], |
| "ecosystem_specific": { |
| "imports": [ |
| { |
| "path": "cmd/go" |
| } |
| ] |
| } |
| } |
| ], |
| "references": [ |
| { |
| "type": "FIX", |
| "url": "https://go.dev/cl/736711" |
| }, |
| { |
| "type": "REPORT", |
| "url": "https://go.dev/issue/77100" |
| }, |
| { |
| "type": "WEB", |
| "url": "https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc" |
| } |
| ], |
| "credits": [ |
| { |
| "name": "RyotaK (https://ryotak.net) of GMO Flatt Security Inc." |
| } |
| ], |
| "database_specific": { |
| "url": "https://pkg.go.dev/vuln/GO-2026-4339", |
| "review_status": "REVIEWED" |
| } |
| } |