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.
CVE-2025-61731
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2026-01-28. NVD baseline CVSS 7.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EPSS
- 41.3%
- KEV
- Not listed
Published
January 28, 2026
Last Modified
July 15, 2026
Advisory Details (10)
Auto-updated Jul 1, 2026cmd/go: bypass of flag sanitization can lead to arbitrary code execution (CVE-2025-61731) · Issue #77100 · golang/go · GitHub
https://go.dev/issue/77100Vendor Advisories for CVE-2025-61731(20)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
- RHSA-2026:21691Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.13.67 bug fix and security update
- RHSA-2026:20088Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.16.63 bug fix and security update
- RHSA-2026:17598Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.17.54 bug fix and security update
- RHSA-2026:14774Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.15.64 bug fix and security update
- RHSA-2026:15091Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.14.65 bug fix and security update
- RHSA-2026:14100Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.12.89 bug fix and security update
- RHSA-2026:13736Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.18.40 bug fix and security update
- RHSA-2026:12282Red Hat Product SecurityHigh
Red Hat Security Advisory: OpenShift Container Platform 4.12.88 bug fix and security update
- +12 more
Patch Availability(30)
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
Go(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| toolchain | — | 1.25.6 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(13)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2026:3556IMPORTANT2026-01-28
RHSA-2026:3556 — Important
- Red HatRHSA-2026:3559IMPORTANT2026-01-28
RHSA-2026:3559 — Important
- Red HatRHSA-2026:3855IMPORTANT2026-01-28
RHSA-2026:3855 — Important
- Red HatRHSA-2026:4434IMPORTANT2026-01-28
RHSA-2026:4434 — Important
- Red HatRHSA-2026:5133IMPORTANT2026-01-28
RHSA-2026:5133 — Important
- Red HatRHSA-2026:5907IMPORTANT2026-01-28
RHSA-2026:5907 — Important
- Red HatRHSA-2026:5941IMPORTANT2026-01-28
RHSA-2026:5941 — Important
- Red HatRHSA-2026:5942IMPORTANT2026-01-28
RHSA-2026:5942 — Important
- Red HatRHSA-2026:5943IMPORTANT2026-01-28
RHSA-2026:5943 — Important
- Red HatRHSA-2026:5944IMPORTANT2026-01-28
RHSA-2026:5944 — Important
- Red HatRHSA-2026:5948IMPORTANT2026-01-28
RHSA-2026:5948 — Important
- Red HatRHSA-2026:5950IMPORTANT2026-01-28
RHSA-2026:5950 — Important
- Red HatRHSA-2026:5952IMPORTANT2026-01-28
RHSA-2026:5952 — Important
Data Freshness Timeline
(refreshed 10× in last 7d / 45× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-15 01:59 UTCEPSS rescore
- 2026-07-13 22:29 UTCEPSS rescore
- 2026-07-13 13:37 UTCOSV refresh
- 2026-07-13 06:12 UTCEPSS rescore
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-09 19:09 UTCEPSS rescore
- 2026-07-08 15:15 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:30 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-07-01 15:06 UTCEPSS rescore
- 2026-06-30 23:22 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
- 2026-06-28 14:07 UTCEPSS rescore
Show 57 moreShow fewer
- 2026-06-28 04:56 UTCEPSS rescore
- 2026-06-28 04:55 UTCEPSS rescore
- 2026-06-27 03:08 UTCEPSS rescore
- 2026-06-25 13:49 UTCEPSS rescore
- 2026-06-25 09:01 UTCOSV refresh
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-24 14:04 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-23 21:32 UTCEPSS rescore
- 2026-06-22 14:25 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 14:56 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-21 01:59 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-19 19:25 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-18 17:52 UTCEPSS rescore
- 2026-06-17 17:52 UTCEPSS rescore
- 2026-06-16 17:52 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-15 17:48 UTCEPSS rescore
- 2026-06-14 23:18 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-13 23:00 UTCEPSS rescore
- 2026-06-12 23:11 UTCEPSS rescore
- 2026-06-11 14:00 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 22:18 UTCEPSS rescore
- 2026-06-10 13:22 UTCEPSS rescore
- 2026-06-08 14:17 UTCEPSS rescore
- 2026-06-08 14:16 UTCEPSS rescore
- 2026-06-08 01:59 UTCEG score recompute
- 2026-06-08 01:59 UTCVendor advisory
- 2026-06-08 01:59 UTCGHSA enrichment
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-07 15:24 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-06 13:47 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 22:46 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-05 06:10 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-04 13:12 UTCEPSS rescore
- 2026-06-02 20:13 UTCEPSS rescore
- 2026-06-02 20:12 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-06-01 13:51 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 22:30 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-31 00:16 UTCEPSS rescore
- 2026-05-29 15:05 UTCEG score recompute
- 2026-05-29 15:05 UTCVendor advisory
- 2026-05-29 15:05 UTCGHSA enrichment
- 2026-05-29 13:44 UTCEPSS rescore
Frequently asked(5)
What is CVE-2025-61731?
When was CVE-2025-61731 disclosed?
Is CVE-2025-61731 actively exploited?
What is the CVSS score of CVE-2025-61731?
How do I remediate CVE-2025-61731?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-61731
Is Your Infrastructure Affected by CVE-2025-61731?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.