Golang 1.10: Building a malicious package that uses "#cgo pkg-config:" directives could load untrusted pkg-config
Affects golang-1.10Source GCVE Database
Not known to be exploited · CVSS 8.3 High.
Data as of 18 Nov 2026, 15:19 UTC
Thin evidence
One scorer or none| CISA-ADP | CVSS 3.1 | 8.3 |
|---|
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 11 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10golang-1.26pkg:deb/ubuntu/golang-1.26?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.10golang-1.27pkg:deb/ubuntu/golang-1.27?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.23pkg:deb/ubuntu/golang-1.23?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.25pkg:deb/ubuntu/golang-1.25?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.26pkg:deb/ubuntu/golang-1.26?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Building a malicious package that uses "#cgo pkg-config:" directives could load untrusted pkg-config ".pc" files or inject unvalidated compiler and linker flags. The pkg-config flag allowlist previously permitted "--with-path=" and "--personality=", allowed "--define-variable=" values beginning with "=" or "$" (which can rewrite paths in system ".pc" files into sysroot-prefixed "-L=" or "-L$SYSROOT" linker search paths), and allowed package arguments ending in ".pc" or containing path separators or "..", which caused pkg-config to load local ".pc" files directly from the package directory. In addition, flags returned by "pkg-config --cflags" in cgoCPPFLAGS were not checked when determining whether internal linking is safe. The go command now disallows "--with-path=", "--personality=", leading "=" or "$" characters in "--define-variable=" values, and local ".pc" paths in "#cgo pkg-config:" directives, and inspects cgoCPPFLAGS when checking internal linking compatibility.
References
- ubuntu.com/security/CVE-2026-97039 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-97039 (opens in a new tab)
- groups.google.com/g/golang-announce/c/iY8TY0wWgbM/m/KsU1KfWgAQAJ (opens in a new tab)
- github.com/golang/go/issues/82571 (opens in a new tab)
- github.com/golang/go/commit/e7b9584fecd027e03a2abd2be2bbde2a43b5c668 (opens in a new tab)
- github.com/golang/go/commit/616afe1c2c33babc697ee687e66e25af1aba51ad (opens in a new tab)
- go.dev/cl/862152 (opens in a new tab)
- go.dev/issue/82571 (opens in a new tab)
- groups.google.com/g/golang-announce/c/iY8TY0wWgbM (opens in a new tab)
- pkg.go.dev/vuln/GO-2026-6852 (opens in a new tab)