CVE-2025-61731

Source
https://cve.org/CVERecord?id=CVE-2025-61731
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-61731.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-61731
Aliases
Downstream
Related
Published
2026-01-28T20:16:10.073Z
Modified
2026-02-07T22:22:38.460850Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
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. 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.

References

Affected packages

Git / github.com/golang/go

Affected ranges

Affected versions

go1.*
go1.25.0
go1.25.1
go1.25.2
go1.25.3
go1.25.4
go1.25.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-61731.json"