CVE-2025-61731

EUVD-2025-206447
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.
Argument Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
7.8 HIGH
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 49.98%
Affected Products (NVD)
VendorProductVersion
golanggo
𝑥
< 1.24.12
golanggo
1.25.0 ≤
𝑥
< 1.25.6
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
golang-1.19
bookworm
no-dsa
golang-1.24
trixie
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
golang-1.13
bionic
needed
focal
needed
jammy
needed
noble
dne
questing
dne
resolute
dne
xenial
needed
golang-1.18
bionic
needed
focal
needed
jammy
needed
noble
dne
questing
dne
resolute
dne
xenial
needed
golang-1.23
jammy
needed
noble
needed
questing
ignored
resolute
needed
golang-1.24
jammy
needed
noble
needed
questing
ignored
resolute
needed
golang-1.25
jammy
dne
noble
dne
questing
ignored
resolute
needed
golang
jammy
dne
noble
dne
questing
dne
resolute
dne
golang-1.10
bionic
needed
jammy
dne
noble
dne
questing
dne
resolute
dne
trusty
needed
xenial
needed
golang-1.14
focal
needed
jammy
dne
noble
dne
questing
dne
resolute
dne
golang-1.16
bionic
needed
focal
needed
jammy
dne
noble
dne
questing
dne
resolute
dne
golang-1.17
jammy
needed
noble
dne
questing
dne
resolute
dne
golang-1.20
focal
needed
jammy
needed
noble
dne
questing
dne
resolute
dne
golang-1.21
focal
needed
jammy
needed
noble
needed
questing
dne
resolute
dne
golang-1.22
focal
needed
jammy
needed
noble
needed
questing
dne
resolute
dne
golang-1.6
jammy
dne
noble
dne
questing
dne
resolute
dne
xenial
not-affected
golang-1.8
bionic
not-affected
jammy
dne
noble
dne
questing
dne
resolute
dne
golang-1.9
bionic
not-affected
jammy
dne
noble
dne
questing
dne
resolute
dne
Red Hat logo
Red Hat Enterprise Linux Releases
Red Hat Product
Release
go-toolset
RHEL 9
0:1.25.8-1.el9_7
fixed
golang
RHEL 9
0:1.25.8-1.el9_7
fixed
golang-bin
RHEL 9
0:1.25.8-1.el9_7
fixed
golang-docs
RHEL 9
0:1.25.8-1.el9_7
fixed
golang-misc
RHEL 9
0:1.25.8-1.el9_7
fixed
golang-race
RHEL 9
0:1.25.8-1.el9_7
fixed
golang-src
RHEL 9
0:1.25.8-1.el9_7
fixed
golang-tests
RHEL 9
0:1.25.8-1.el9_7
fixed
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
amazon-ssm-agent
Amazon Linux 2
0:3.3.3883.0-1.amzn2
fixed
Amazon Linux 2023
0:3.3.3883.0-1.amzn2023
fixed
golang
Amazon Linux 2
0:1.24.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.24.12-1.amzn2023.0.1
fixed
golang-bin
Amazon Linux 2
0:1.24.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.24.12-1.amzn2023.0.1
fixed
golang-docs
Amazon Linux 2
0:1.24.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.24.12-1.amzn2023.0.1
fixed
golang-misc
Amazon Linux 2
0:1.24.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.24.12-1.amzn2023.0.1
fixed
golang-shared
Amazon Linux 2
0:1.24.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.24.12-1.amzn2023.0.1
fixed
golang-src
Amazon Linux 2
0:1.24.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.24.12-1.amzn2023.0.1
fixed
golang-tests
Amazon Linux 2
0:1.24.12-1.amzn2.0.1
fixed
Amazon Linux 2023
0:1.24.12-1.amzn2023.0.1
fixed
References