ADVISORIES

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 SUSE

  • SUSE-SU-2026:0218-1

    Security update for go1.25

    CVE-2025-61726CVE-2025-61728CVE-2025-61730CVE-2025-61731 SUSEopenSUSE Updated 23 March 2026
  • SUSE-SU-2026:0219-1

    Security update for go1.24

    CVE-2025-61726CVE-2025-61728CVE-2025-61730CVE-2025-61731 SUSEopenSUSE Updated 23 March 2026
  • SUSE-SU-2026:0296-1

    Security update for go1.24-openssl

    CVE-2025-47912CVE-2025-58183CVE-2025-58185CVE-2025-58186 SUSE Updated 23 March 2026
  • SUSE-SU-2026:0297-1

    Security update for go1.25-openssl

    CVE-2025-4674CVE-2025-47906CVE-2025-47907CVE-2025-47910 SUSE Updated 4 February 2026
  • SUSE-SU-2026:0298-1

    Security update for go1.25-openssl

    CVE-2025-4674CVE-2025-47906CVE-2025-47907CVE-2025-47910 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2026:0308-1

    Security update for go1.24-openssl

    CVE-2025-47912CVE-2025-58183CVE-2025-58185CVE-2025-58186 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2026:20122-1

    Security update for go1.24

    CVE-2025-61726CVE-2025-61728CVE-2025-61730CVE-2025-61731 SUSE Updated 23 March 2026
  • SUSE-SU-2026:20132-1

    Security update for go1.25

    CVE-2025-61726CVE-2025-61728CVE-2025-61730CVE-2025-61731 SUSE Updated 23 March 2026
  • SUSE-SU-2026:20623-1

    Security update for go1.25-openssl

    CVE-2025-47912CVE-2025-58183CVE-2025-58185CVE-2025-58186 SUSE Updated 23 March 2026
  • SUSE-SU-2026:20629-1

    Security update for go1.24-openssl

    CVE-2025-47912CVE-2025-58183CVE-2025-58185CVE-2025-58186 SUSE Updated 23 March 2026
  • SUSEVEX-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…

    Important CVE-2025-61731 SUSE Updated 28 October 2026

References