CVE-2025-61731

Source
https://cve.org/CVERecord?id=CVE-2025-61731
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-61731.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-61731
Aliases
Downstream
Related
Published
2026-01-28T20:16:10.073Z
Modified
2026-03-13T22:57:39.165035Z
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

Type
GIT
Repo
https://github.com/golang/go
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.24.12"
        },
        {
            "introduced": "1.25.0"
        },
        {
            "fixed": "1.25.6"
        }
    ]
}

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/osv-test-cve-osv-conversion/osv-output/CVE-2025-61731.json"