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: 2463455 2463456
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-01-28 20:02 UTC by OSIDB Bzimport
Modified: 2026-04-28 12:50 UTC (History)
19 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
Red Hat Product Errata RHSA-2026:7833 0 None None None 2026-04-13 09:51:48 UTC
Red Hat Product Errata RHSA-2026:7834 0 None None None 2026-04-13 10:19:15 UTC
Red Hat Product Errata RHSA-2026:7876 0 None None None 2026-04-13 16:27:52 UTC
Red Hat Product Errata RHSA-2026:7877 0 None None None 2026-04-13 16:26:32 UTC
Red Hat Product Errata RHSA-2026:7878 0 None None None 2026-04-13 16:19:41 UTC
Red Hat Product Errata RHSA-2026:7879 0 None None None 2026-04-13 16:24:02 UTC
Red Hat Product Errata RHSA-2026:7883 0 None None None 2026-04-13 17:41:48 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

Comment 10 errata-xmlrpc 2026-04-13 09:51:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

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

Comment 11 errata-xmlrpc 2026-04-13 10:19:12 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

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

Comment 12 errata-xmlrpc 2026-04-13 16:19:38 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.2 Advanced Update Support

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

Comment 13 errata-xmlrpc 2026-04-13 16:24:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On

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

Comment 14 errata-xmlrpc 2026-04-13 16:26:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

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

Comment 15 errata-xmlrpc 2026-04-13 16:27:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

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

Comment 16 errata-xmlrpc 2026-04-13 17:41:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

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


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