PT-2026-144962
CVE-2026-97039
·
Published
2026-11-11
·
Updated
2026-11-11
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
Name of the Vulnerable Software and Affected Versions
Go (affected versions not specified)
Description
Building a malicious package using
#cgo pkg-config: directives can lead to the loading of untrusted pkg-config .pc files or the injection of unvalidated compiler and linker flags. This occurs because the pkg-config flag allowlist previously permitted --with-path= and --personality=, and allowed --define-variable= values starting with = or $, which could rewrite system .pc file paths into sysroot-prefixed linker search paths. Additionally, package arguments ending in .pc or containing path separators or .. allowed pkg-config to load local .pc files directly from the package directory. Furthermore, flags returned by pkg-config --cflags in cgoCPPFLAGS were not verified when determining the safety of internal linking.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Found an issue in the description? Have something to add? Feel free to write us 👾