CVE-2025-61731
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2026-01-28

Last updated on: 2026-02-06

Assigner: Go Project

Description
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 Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-01-28
Last Modified
2026-02-06
Generated
2026-05-07
AI Q&A
2026-01-29
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
golang go to 1.24.12 (exc)
golang go From 1.25.0 (inc) to 1.25.6 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-NVD-CWE-noinfo
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability occurs when a malicious file built with cmd/go uses the "#cgo pkg-config:" directive in a Go source file to pass command-line arguments to the Go pkg-config command. An attacker can supply a "--log-file" argument through this directive, causing pkg-config to write to a file at an attacker-controlled location with partial control over the file content.


How can this vulnerability impact me? :

The vulnerability can allow an attacker to write to files at locations they control, potentially leading to unauthorized file modification or creation. This could be exploited to overwrite important files or inject malicious content, impacting system integrity or security.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart