CVE-2026-97039 explained
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=".
!high 8.3 / 10
Chance of being attacked in the next 30 days: 0%. Published 11 Nov 2026.
In plain English
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.
The plain-English version is written once the record settles.
The facts
- Severity
- high (CVSS 8.3)
- Exploited
- not in CISA's catalogue
- Chance of attack, 30 days
- 0% (higher than 35% of all records)
- Published
- 11 Nov 2026
- Last changed
- 17 Nov 2026
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L
Who is affected
The sources have not published affected products and versions yet.
What to do
- Read the official record for the fixed version and update.
- Plan the update within the week; back up first.
- If someone else runs the software for you, send them this page.
Official sources
Common questions
Am I affected by CVE-2026-97039?
The sources have not published which products and versions are affected yet. Check back, or read the official record.
Is CVE-2026-97039 being exploited?
No confirmed exploitation in CISA's catalogue. The chance of exploitation in the next 30 days is 0% (EPSS).
What should I do?
Read the vendor advisory for the fixed version and update. If someone else runs the software for you, send them this page.
Know when a vulnerability applies to your software
Declare what you run, or let the scan find it. We match every new record to your versions and say what to do.