Vulnerability
CVE-2025-61731
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.
3232 advisories report this vulnerability, across 15 ecosystems.
Advisories in Wolfi
- CGA-232v-c26c-xrvc
- CGA-238v-6pxf-m2qx
- CGA-2428-36fp-g6vq
- CGA-24v7-m852-vc27
- CGA-2577-m9j6-wm3j
- CGA-25mq-fp9p-fhfx
- CGA-2648-ppxf-4jcw
- CGA-26vh-6m9g-5xfv
- CGA-27fj-7mh2-5j62
- CGA-27p9-w6xp-2628
- CGA-27x2-mr3p-wp4f
- CGA-297r-vc94-96wx
- CGA-29mh-xr3m-r83h
- CGA-2c36-5gwh-prx7
- CGA-2cmv-m4hm-g698
- CGA-2f3c-35rp-j778
- CGA-2f9f-c8x5-vhjh
- CGA-2g5v-qj74-vjc9
- CGA-2g98-r6w9-49m9
- CGA-2g9x-8w58-fgph
- CGA-2ggq-773m-9362
- CGA-2h6r-5rcp-4c82
- CGA-2j29-77cm-qq62
- CGA-2j4f-grv2-rrwh
- CGA-2jvh-h484-h2cr
- CGA-2p8q-4mpf-49rw
- CGA-2qh5-8c94-4gwq
- CGA-2qhr-px6c-r56f
- CGA-2vh9-64f4-845w
- CGA-2vmp-cq2x-qcx3
- CGA-2w57-qpmc-qj6h
- CGA-2w9x-9f25-c96m
- CGA-2wp8-c6qf-xfx9
- CGA-2wp8-pfr2-mh4r
- CGA-2wrv-hp8x-h67j
- CGA-2www-h988-748j
- CGA-2wx8-8827-q795
- CGA-2x44-4r47-f7m9
- CGA-2xgp-pqh9-w56c
- CGA-2xvq-vv67-f2mj
- CGA-32jq-5j7c-368x
- CGA-32r5-r585-cf7x
- CGA-32vg-xhfh-6qvc
- CGA-32w5-8c76-mhf6
- CGA-342v-j53r-546w
- CGA-34g6-5573-3744
- CGA-34xx-mc65-8vp6
- CGA-3535-fhfm-gq3w
- CGA-35jc-7pp7-g2h2
- CGA-366g-wjh4-4h26
- CGA-36p4-4763-63w4
- CGA-372q-2vw8-xvmx
- CGA-37jw-g475-23qq
- CGA-386j-2mg3-526g
- CGA-38j4-97xx-c5q3
- CGA-38rj-8rh8-9w4w
- CGA-3958-gcrj-mfhx
- CGA-39c3-2g4p-9p94
- CGA-39f2-g7ww-94r8
- CGA-39fh-fmfr-2v7h
- CGA-39r3-hg86-xr4x
- CGA-3cqj-vq88-xr3g
- CGA-3crf-42h6-94jj
- CGA-3fmc-cc24-wf6f
- CGA-3fpc-23wp-24q8
- CGA-3gh5-hhg4-jj2j
- CGA-3h36-cwjg-wp69
- CGA-3jcj-42f2-723h
- CGA-3jwm-mghr-97g5
- CGA-3mf8-q3qq-6ghw
- CGA-3mv2-g826-6q6q
- CGA-3p58-jvgh-5qpg
- CGA-3p9h-h98c-jj67
- CGA-3pm7-rq45-6chp
- CGA-3qg3-56vq-q44x
- CGA-3qgw-x6p3-64cj
- CGA-3r6g-gpw2-p5v5
- CGA-3rjv-4jw4-gq3h
- CGA-3v44-78vw-6qj3
- CGA-3vjx-wc3v-4r9q
- CGA-3wff-q5gm-2fjx
- CGA-3x99-9682-hf4p
- CGA-4228-2qh6-xrg2
- CGA-4268-rq92-mf2q
- CGA-4286-mv6q-qf7q
- CGA-42h3-wjch-q3cx
- CGA-42j9-h7cq-4xqc
- CGA-43xw-qfp4-v8wp
- CGA-448c-8g72-cj8f
- CGA-464x-738q-hgrj
- CGA-46pm-j6j5-rpmh
- CGA-487j-2vvv-qw2p
- CGA-48hq-98x4-5393
- CGA-48v4-4q4j-jhhj
- CGA-48wp-wcrf-rj4v
- CGA-49pf-8qg9-v4q6
- CGA-49v4-g9qj-wjgw
- CGA-49v9-m4x6-7628
- CGA-4cp7-j499-2xjv
- CGA-4fg6-v9h5-4gxp
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2025-61731.
References
- https://go.dev/cl/736711
- https://go.dev/issue/77100
- https://groups.google.com/g/golang-announce/c/Vd2tYVM8eUc
- https://pkg.go.dev/vuln/GO-2026-4339
- https://access.redhat.com/errata/RHSA-2026:12118
- https://access.redhat.com/errata/RHSA-2026:12282
- https://access.redhat.com/errata/RHSA-2026:13736
- https://access.redhat.com/errata/RHSA-2026:14100
- https://access.redhat.com/errata/RHSA-2026:14774
- https://access.redhat.com/errata/RHSA-2026:15091
- https://access.redhat.com/errata/RHSA-2026:17598
- https://access.redhat.com/errata/RHSA-2026:20088
- https://access.redhat.com/errata/RHSA-2026:21691
- https://access.redhat.com/errata/RHSA-2026:3556
- https://access.redhat.com/errata/RHSA-2026:3559
- https://access.redhat.com/errata/RHSA-2026:3855
- https://access.redhat.com/errata/RHSA-2026:4434
- https://access.redhat.com/errata/RHSA-2026:5941
- https://access.redhat.com/errata/RHSA-2026:5942
- https://access.redhat.com/errata/RHSA-2026:5943
- https://access.redhat.com/errata/RHSA-2026:5944
- https://access.redhat.com/errata/RHSA-2026:5948
- https://access.redhat.com/errata/RHSA-2026:5950
- https://access.redhat.com/errata/RHSA-2026:5952
- https://access.redhat.com/errata/RHSA-2026:6949
- https://access.redhat.com/errata/RHSA-2026:7291
- https://access.redhat.com/errata/RHSA-2026:7385
- https://access.redhat.com/errata/RHSA-2026:7833
- https://access.redhat.com/errata/RHSA-2026:7834
- https://access.redhat.com/errata/RHSA-2026:7876
- https://access.redhat.com/errata/RHSA-2026:7877
- https://access.redhat.com/errata/RHSA-2026:7878
- https://access.redhat.com/errata/RHSA-2026:7879
- https://access.redhat.com/errata/RHSA-2026:7883
- https://access.redhat.com/errata/RHSA-2026:8448
- https://access.redhat.com/security/cve/CVE-2025-61731
- https://bugzilla.redhat.com/show_bug.cgi?id=2434433
- https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61731.json