{"id":"DHI-txpy-qbqh-pigy-g5u7","summary":"When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via…","details":"When using GCC, building a malicious package that uses cgo could cause arbitrary command execution at link time via untrusted GCC spec files (\"specs\" or \"*.spec\"). When linking with \"-fopenmp\", \"-fopenacc\", or \"-fsanitize=\" in \"#cgo LDFLAGS\", GCC's built-in link spec evaluates \"%:include(libgomp.spec)\" or \"%:include(libsanitizer.spec)\" and searches for spec files in \"-L\" and sysroot directories (including subdirectories and multilib sibling directories such as \"../lib64\"), as well as the working directory when \"-fopenmp\" or \"-fopenacc\" is used or when \"-fsanitize=\" is combined with \"-static\" or \"-static-lib*\". The go command now rejects \"-L\", \"-isysroot\", and \"-Wl,-syslibroot\" directories (and the working and package directories when applicable) that contain GCC spec files, and disallows \"@\" and \"-\" prefixes in \"-fsanitize=\" compiler flag values.","modified":"2026-11-18T20:03:27.878642243Z","published":"2026-11-18T19:52:05Z","upstream":["CVE-2026-97034"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-txpy-qbqh-pigy-g5u7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97034"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2026-97034"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2/ALAS-2026-4125.html"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97054"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97043"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97042"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97041"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97040"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97039"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97038"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97037"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97035"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97034"},{"type":"ADVISORY","url":"http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97033"},{"type":"ADVISORY","url":"https://alas.aws.amazon.com/AL2023/ALAS-2026-3475.html"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-97034"},{"type":"ADVISORY","url":"https://pkg.go.dev/vuln/GO-2026-6857"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-97034"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-97034"},{"type":"FIX","url":"https://github.com/golang/go/commit/faaa8b62d6d8b08ff164213508cad1be33149ec7"},{"type":"FIX","url":"https://github.com/golang/go/commit/c5426cee10abdae95f8f86e22bfff0932c75be79"},{"type":"WEB","url":"https://github.com/golang/go/issues/82576"}],"affected":[{"package":{"name":"go","ecosystem":"Docker Hardened Images:Alpine:3.24","purl":"pkg:apk/dhi/go"},"versions":["1.26.4-r0","1.26.5-r0","1.27.0-r0","1.27.1-r0","1.27.2-r0","1.27.3-r0","1.27.4-r0"],"database_specific":{"source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-txpy-qbqh-pigy-g5u7.json","owner_kind":"HSP"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}