{"identifier":"CVE-2026-97039","cve":{"id":"CVE-2026-97039","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.","published":"2026-11-11T05:19:58.133000+00:00","modified":"2026-11-16T18:17:33.960000+00:00","status":"Awaiting Analysis","score":8.3,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","cvss_version":"3.1","affected":[],"weaknesses":["CWE-88"],"references":[{"url":"https://go.dev/cl/862152","source":"security@golang.org"},{"url":"https://go.dev/issue/82571","source":"security@golang.org"},{"url":"https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM","source":"security@golang.org"},{"url":"https://pkg.go.dev/vuln/GO-2026-6852","source":"security@golang.org"}],"kev":null,"kev_checked":true,"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:L","baseScore":8.3,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"LOW"},"exploitabilityScore":2.8,"impactScore":5.5}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-11-16T17:27:36.966788Z","id":"CVE-2026-97039","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[],"source":"nvd","retrieved_at":"2026-11-16T21:32:54.395881+00:00","exploited":false,"kev_stale":false,"products":[],"priority":{"label":"Assess exposure and vendor guidance","reasons":["No higher-priority signal is available in the current stored evidence."]},"epss":{"probability":0.00385,"percentile":0.33176,"date":"2026-11-18","stale":false},"version_assessment":null},"news":[],"campaigns":[],"domains":[{"domain":"go.dev","source_url":"https://go.dev/cl/862152","investigate_url":"https://investigate.aeglixmind.com/#go.dev"},{"domain":"groups.google.com","source_url":"https://groups.google.com/g/golang-announce/c/iY8TY0wWgbM","investigate_url":"https://investigate.aeglixmind.com/#groups.google.com"},{"domain":"pkg.go.dev","source_url":"https://pkg.go.dev/vuln/GO-2026-6852","investigate_url":"https://investigate.aeglixmind.com/#pkg.go.dev"}],"arsenal_url":"https://arsenal.aeglixmind.com/?cve=CVE-2026-97039","catalog_url":"https://cves.aeglixmind.com/cve/CVE-2026-97039","research_url":"https://investigate.aeglixmind.com/research/cve/CVE-2026-97039","coverage":{"news_candidates_checked":0,"campaign_candidates_checked":0,"bounded":false,"notice":"Exact CVE mentions in stored public excerpts and reviewed campaign content only. A mention is not proof of exploitation, attribution or tool suitability. Missing matches do not establish absence."}}