BIT-golang-2025-61731

See a problem?
Import Source
https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2025-61731.json
JSON Data
https://api.osv.dev/v1/vulns/BIT-golang-2025-61731
Aliases
Published
2026-01-31T08:43:38.643Z
Modified
2026-01-31T09:26:14.424672Z
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. 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.

Database specific
{
    "cpes": [
        "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"
    ],
    "severity": "High"
}
References

Affected packages

Bitnami / golang

Package

Name
golang
Purl
pkg:bitnami/golang

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

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.24.12
Introduced
1.25.0
Fixed
1.25.6

Database specific

source
"https://github.com/bitnami/vulndb/tree/main/data/golang/BIT-golang-2025-61731.json"