REDHAT-BUG-2434433: High severity go vulnerability

Published Jan 28, 2026
·
Updated

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 Software

1 affected component
go

Event History

Jan 28, 2026
Data Sourced
via Red Hat·08:02 PM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2434433?

The severity of REDHAT-BUG-2434433 is classified as a vulnerability that allows an attacker to control file content partially.

2

How do I fix REDHAT-BUG-2434433?

To fix REDHAT-BUG-2434433, ensure to validate and sanitize file input to prevent unauthorized file access.

3

What software is affected by REDHAT-BUG-2434433?

REDHAT-BUG-2434433 affects the Go programming language environments using the cmd/go command.

4

What kind of attacks does REDHAT-BUG-2434433 enable?

REDHAT-BUG-2434433 enables potential attacks where an attacker can write to a file with partial control over its content.

5

Is it safe to use the #cgo pkg-config: directive in Go?

Using the #cgo pkg-config: directive in Go is not safe without proper input validation, as it can be exploited by an attacker.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203