CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2025 · Golang

CVE-2025-61731
Golang Go vulnerability

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.

Affected products

Go. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Golang Go runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Golang products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.