DHI-7hbm-bayu-72gs-5r6m
Building a malicious package containing "//go:cgo_*" compiler directives could inject arbitrary flags into the external…
- CVSS
- —
- EPSS
- —
- Published
- 2026-11-18
- Age
- 16d old
- Modified
- 2026-11-26
- Product
- go
Description
Building a malicious package containing "//go:cgo_*" compiler directives could inject arbitrary flags into the external linker invocation on ELF platforms. The compiler and linker did not reject commas in "//go:cgo_import_dynamic", "//go:cgo_export_dynamic", "//go:cgo_export_static", "//go:cgo_import_static", and "//go:cgo_dynamic_linker" directives, and the linker passed the dynamic linker path using "-Wl,--dynamic-linker,<path>". Furthermore, the two-argument form of "//go:cgo_import_dynamic" (which is permitted in non-cgo Go source files) could overwrite the external symbol name of a symbol already marked for cgo export. A symbol name or dynamic linker path containing a comma or leading "@" could split "-Wl,--export-dynamic-symbol=" or "-Wl,--dynamic-linker," into arbitrary host linker flags or response file arguments. The compiler and linker now reject commas in "//go:cgo_*" symbol and dynamic linker directives, the linker passes "-Wl,--dynamic-linker=<path>", and "cgo_import_dynamic" no longer overwrites symbols exported via "cgo_export_dynamic" or "cgo_export_static".
Sources
- OSV · first seen 10d ago · CC-BY 4.0
References
- https://scout.docker.com/v/DHI-7hbm-bayu-72gs-5r6m advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-97041 advisory
- https://errata.almalinux.org/9/ALSA-2026-102586.html advisory
- https://access.redhat.com/errata/RHSA-2026:102586 advisory
- https://errata.almalinux.org/8/ALSA-2026-102592.html advisory
- https://access.redhat.com/errata/RHSA-2026:102592 advisory
- https://security.alpinelinux.org/vuln/CVE-2026-97041 advisory
- https://alas.aws.amazon.com/AL2/ALAS-2026-4125.html advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97054 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97043 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97042 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97041 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97040 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97039 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97038 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97037 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97035 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97034 advisory
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-97033 advisory
- https://alas.aws.amazon.com/AL2023/ALAS-2026-3475.html advisory
- https://security-tracker.debian.org/tracker/CVE-2026-97041 advisory
- https://pkg.go.dev/vuln/GO-2026-6850 advisory
- https://linux.oracle.com/cve/ELSA-2026-102586.html advisory
- https://linux.oracle.com/errata/ELSA-2026-102586.html advisory
- https://linux.oracle.com/cve/ELSA-2026-102587.html advisory