CVE-2025-61731

HIGHPre-NVD 7.87.8
EchelonGraph scoreMEDIUM confidence

Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2026-01-28. NVD baseline CVSS 7.8; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: epss, ghsa, nvd
7.8
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 1%CVSS: 7.8Exploit: NoneExposed: 0

A fix is available — apply it.

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.

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, 2026
Patch available. Sources: redhat.
generic

GO-2026-4339 - Go Packages

https://pkg.go.dev/vuln/GO-2026-4339
generic

cmd/go: bypass of flag sanitization can lead to arbitrary code execution (CVE-2025-61731) · Issue #77100 · golang/go · GitHub

https://go.dev/issue/77100

Patch Availability(30)

Vendor / EcosystemFixed in / PatchReleasedSource
redhatopenshift4/ovirt-csi-driver-rhel8-operator:17798896282026-06-04redhat
redhatopenshift4/ovirt-csi-driver-rhel9-operator:17792545412026-05-29redhat
redhatopenshift4/ovirt-csi-driver-rhel9:17774781342026-05-13redhat
redhatopenshift4/ovirt-csi-driver-rhel8-operator:17779975442026-05-12redhat
redhatopenshift4/ose-tests:17781731822026-05-08redhat
redhatopenshift4/ose-tests-rhel9:17775537592026-05-06redhat
redhatopenshift4/ovirt-csi-driver-rhel9-operator:17769767212026-05-06redhat
redhatopenshift4/ovirt-csi-driver-rhel8-operator:17770016452026-05-06redhat
redhatgolang-0:1.19.13-24.el9_22026-04-13redhat
redhatgo-toolset:rhel8-8060020260409063558.97d7f71f2026-04-13redhat
redhatgo-toolset:rhel8-8080020260331223648.6b4b45d82026-04-13redhat
redhatgolang-0:1.21.13-15.el9_42026-04-13redhat
redhatgo-toolset:rhel8-8020020260408140623.02f7cb7a2026-04-13redhat
redhatgolang-0:1.17.13-11.el9_02026-04-13redhat
redhatgo-toolset:rhel8-8040020260408080443.5081a2622026-04-13redhat
redhatgolang1-25-main-1.25.9-1.hum12026-04-10redhat
redhatgolang1-26-main-1.26.2-1.hum12026-04-09redhat
redhatgo-toolset:rhel8-8100020260402232122.a3795dee2026-04-08redhat
redhatopenshift4/ovirt-csi-driver-rhel9-operator:17742944982026-04-01redhat
redhatgolang-0:1.25.8-1.el9_62026-03-26redhat
redhatgolang-0:1.25.8-1.el10_12026-03-26redhat
redhatgolang-0:1.25.8-1.el10_02026-03-26redhat
redhatopenshift-service-mesh/istio-rhel9-operator:17742948092026-03-26redhat
redhatopenshift-service-mesh/istio-rhel9-operator:17742943722026-03-26redhat
redhatopenshift-service-mesh/istio-rhel9-operator:17742938512026-03-26redhat
redhatgolang-0:1.25.8-1.el9_72026-03-26redhat
redhatopenshift4/ose-vsphere-csi-driver-rhel9:17727535482026-03-25redhat
redhatopenshift4/ovirt-csi-driver-rhel9-operator:17721673352026-03-18redhat
redhatopenshift4/volume-data-source-validator-rhel9:17721418382026-03-11redhat
redhatopenshift-service-mesh/proxyv2-rhel9:17720838612026-03-02redhat

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)
PackageVulnerable rangeFixed inDependents
toolchain1.25.6

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

Additional Vendor Advisories

(13)

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.

  1. 2026-07-15 16:57 UTCEPSS rescore
  2. 2026-07-15 16:57 UTCEPSS rescore
  3. 2026-07-15 01:59 UTCEPSS rescore
  4. 2026-07-15 01:59 UTCEPSS rescore
  5. 2026-07-13 22:29 UTCEPSS rescore
  6. 2026-07-13 13:37 UTCOSV refresh
  7. 2026-07-13 06:12 UTCEPSS rescore
  8. 2026-07-12 05:46 UTCEPSS rescore
  9. 2026-07-11 08:27 UTCEPSS rescore
  10. 2026-07-09 19:09 UTCEPSS rescore
  11. 2026-07-08 15:15 UTCEPSS rescore
  12. 2026-07-07 13:46 UTCEPSS rescore
  13. 2026-07-06 16:27 UTCEPSS rescore
  14. 2026-07-06 16:27 UTCEPSS rescore
  15. 2026-07-06 02:23 UTCEPSS rescore
  16. 2026-07-06 02:23 UTCEPSS rescore
  17. 2026-07-05 02:30 UTCEPSS rescore
  18. 2026-07-05 02:30 UTCEPSS rescore
  19. 2026-07-04 06:31 UTCEPSS rescore
  20. 2026-07-04 06:30 UTCEPSS rescore
  21. 2026-07-01 15:06 UTCEPSS rescore
  22. 2026-07-01 15:06 UTCEPSS rescore
  23. 2026-06-30 23:22 UTCEPSS rescore
  24. 2026-06-28 14:07 UTCEPSS rescore
  25. 2026-06-28 14:07 UTCEPSS rescore
Show 57 more
  1. 2026-06-28 04:56 UTCEPSS rescore
  2. 2026-06-28 04:55 UTCEPSS rescore
  3. 2026-06-27 03:08 UTCEPSS rescore
  4. 2026-06-25 13:49 UTCEPSS rescore
  5. 2026-06-25 09:01 UTCOSV refresh
  6. 2026-06-24 14:04 UTCEPSS rescore
  7. 2026-06-24 14:04 UTCEPSS rescore
  8. 2026-06-23 21:32 UTCEPSS rescore
  9. 2026-06-23 21:32 UTCEPSS rescore
  10. 2026-06-22 14:25 UTCEPSS rescore
  11. 2026-06-21 14:56 UTCEPSS rescore
  12. 2026-06-21 14:56 UTCEPSS rescore
  13. 2026-06-21 01:59 UTCEPSS rescore
  14. 2026-06-21 01:59 UTCEPSS rescore
  15. 2026-06-19 19:25 UTCEPSS rescore
  16. 2026-06-19 19:25 UTCEPSS rescore
  17. 2026-06-18 17:52 UTCEPSS rescore
  18. 2026-06-18 17:52 UTCEPSS rescore
  19. 2026-06-17 17:52 UTCEPSS rescore
  20. 2026-06-16 17:52 UTCEPSS rescore
  21. 2026-06-15 17:48 UTCEPSS rescore
  22. 2026-06-15 17:48 UTCEPSS rescore
  23. 2026-06-14 23:18 UTCEPSS rescore
  24. 2026-06-13 23:00 UTCEPSS rescore
  25. 2026-06-13 23:00 UTCEPSS rescore
  26. 2026-06-12 23:11 UTCEPSS rescore
  27. 2026-06-11 14:00 UTCEPSS rescore
  28. 2026-06-10 22:18 UTCEPSS rescore
  29. 2026-06-10 22:18 UTCEPSS rescore
  30. 2026-06-10 13:22 UTCEPSS rescore
  31. 2026-06-08 14:17 UTCEPSS rescore
  32. 2026-06-08 14:16 UTCEPSS rescore
  33. 2026-06-08 01:59 UTCEG score recompute
  34. 2026-06-08 01:59 UTCVendor advisory
  35. 2026-06-08 01:59 UTCGHSA enrichment
  36. 2026-06-07 15:24 UTCEPSS rescore
  37. 2026-06-07 15:24 UTCEPSS rescore
  38. 2026-06-06 13:47 UTCEPSS rescore
  39. 2026-06-06 13:47 UTCEPSS rescore
  40. 2026-06-05 22:46 UTCEPSS rescore
  41. 2026-06-05 22:46 UTCEPSS rescore
  42. 2026-06-05 06:10 UTCEPSS rescore
  43. 2026-06-05 06:10 UTCEPSS rescore
  44. 2026-06-04 13:12 UTCEPSS rescore
  45. 2026-06-04 13:12 UTCEPSS rescore
  46. 2026-06-02 20:13 UTCEPSS rescore
  47. 2026-06-02 20:12 UTCEPSS rescore
  48. 2026-06-01 13:51 UTCEPSS rescore
  49. 2026-06-01 13:51 UTCEPSS rescore
  50. 2026-05-31 22:30 UTCEPSS rescore
  51. 2026-05-31 22:30 UTCEPSS rescore
  52. 2026-05-31 00:16 UTCEPSS rescore
  53. 2026-05-31 00:16 UTCEPSS rescore
  54. 2026-05-29 15:05 UTCEG score recompute
  55. 2026-05-29 15:05 UTCVendor advisory
  56. 2026-05-29 15:05 UTCGHSA enrichment
  57. 2026-05-29 13:44 UTCEPSS rescore

Frequently asked(5)

What is CVE-2025-61731?
CVE-2025-61731 is a high vulnerability published on January 28, 2026. 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…
When was CVE-2025-61731 disclosed?
CVE-2025-61731 was first published in the National Vulnerability Database on January 28, 2026, with the most recent update on July 15, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2025-61731 actively exploited?
CVE-2025-61731 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 41.3% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2025-61731?
CVE-2025-61731 has a CVSS v3.1 base score of 7.8 (CISA-ADP / Vulnrichment enrichment; NVD's own analysis pending).
How do I remediate CVE-2025-61731?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2025-61731, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-61731

Explore →

Is Your Infrastructure Affected by CVE-2025-61731?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.