CVE Feed

    Dashboard / CVE / CVE-2025-61731

    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.

    Published:Jan 28, 2026
    Last Modified:Feb 26, 2026
    EPS:Jan 28, 2026
    EPSS Score:0.00008
    CVSS Score:7.8

    Affected Products

    Vendor
    Golang
    Product
    Go
    Vendor
    Gotoolchain
    Product
    Cmd/go

    Exploits

    No exploit reference

    Related CVEs

    References

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High