Bug 2434433 (CVE-2025-61731) - CVE-2025-61731 cmd/go: cmd/go: Arbitrary file write via malicious pkg-config directive
Summary: CVE-2025-61731 cmd/go: cmd/go: Arbitrary file write via malicious pkg-config ...
Keywords:
Status: NEW
Alias: CVE-2025-61731
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-01-28 20:02 UTC by OSIDB Bzimport
Modified: 2026-04-08 00:29 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:5941 0 None None None 2026-03-26 13:36:46 UTC
Red Hat Product Errata RHSA-2026:5942 0 None None None 2026-03-26 13:48:58 UTC
Red Hat Product Errata RHSA-2026:5943 0 None None None 2026-03-26 13:44:12 UTC
Red Hat Product Errata RHSA-2026:5944 0 None None None 2026-03-26 14:00:38 UTC
Red Hat Product Errata RHSA-2026:6949 0 None None None 2026-04-08 00:29:31 UTC

Description OSIDB Bzimport 2026-01-28 20:02:08 UTC
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.

Comment 5 errata-xmlrpc 2026-03-26 13:36:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:5941 https://access.redhat.com/errata/RHSA-2026:5941

Comment 6 errata-xmlrpc 2026-03-26 13:44:10 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:5943 https://access.redhat.com/errata/RHSA-2026:5943

Comment 7 errata-xmlrpc 2026-03-26 13:48:56 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:5942 https://access.redhat.com/errata/RHSA-2026:5942

Comment 8 errata-xmlrpc 2026-03-26 14:00:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:5944 https://access.redhat.com/errata/RHSA-2026:5944

Comment 9 errata-xmlrpc 2026-04-08 00:29:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:6949 https://access.redhat.com/errata/RHSA-2026:6949


Note You need to log in before you can comment on or make changes to this bug.