Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-97036

Опубликовано: 11 нояб. 2026
Источник: redhat
CVSS3: 7.8
EPSS Низкий

Описание

On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing "-l to_library " in a "#cgo LDFLAGS" directive. The Apple linker recombines the separated arguments "-l" and "to_library" into "-lto_library", which loads an arbitrary LTO plugin dynamic library at link time. The go command now disallows "-l" followed by "to_library" in "#cgo LDFLAGS", rejects "-lazy_library", "-lazy_framework", "-load_hidden", "-library", and "-library-path", and checks recombined "-l" arguments against disallowed linker flags and patterns.

A flaw was found in cmd/go. When a user builds a malicious package using cgo on macOS (Darwin), an attacker can achieve arbitrary code execution on the build system. This issue occurs because the platform linker recombines separated linker flag arguments into a command that loads an arbitrary dynamic library during compilation.

Отчет

This vulnerability is rated as Moderate severity because exploitation requires compiling untrusted source code and depends on linker behaviors unique to Darwin platforms. In Red Hat ecosystems, Go toolsets operate on Linux-based environments utilizing GNU or LLVM linkers that do not evaluate these Darwin-specific linker options. Consequently, typical software compilation workflows on supported Red Hat platforms are not exposed to this execution vector.

Меры по смягчению последствий

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Exploit Intelligenceexploit-intelligence/vulnerability-analysis-rhel9Affected
Migration Toolkit for Applications 8mta/mta-go-external-provider-rhel9Affected
Red Hat Hardened Imagesgolang1.25Will not fix
Red Hat OpenShift Container Platform 4openshift4/ose-operator-sdk-rhel8Affected
Red Hat OpenShift Container Platform 4openshift4/ose-operator-sdk-rhel9Affected
Red Hat OpenShift Dev Spacesdevspaces/udi-rhel9Affected
Red Hat Enterprise Linux 10golangFixedRHSA-2026:10258723.11.2026
Red Hat Enterprise Linux 8go-toolsetFixedRHSA-2026:10259223.11.2026
Red Hat Enterprise Linux 9golangFixedRHSA-2026:10258623.11.2026
Red Hat Hardened Imagesgolang1-27-main-1.27.4-2.hum1FixedRHSA-2026:10123121.11.2026

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-88
https://bugzilla.redhat.com/show_bug.cgi?id=2571450cmd/go: golang: cmd/go: arbitrary code execution via crafted cgo linker flags

EPSS

Процентиль: 17%
0.00252
Низкий

7.8 High

CVSS3

Связанные уязвимости

CVSS3: 8.8
ubuntu
16 дней назад

On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing "-l to_library <path>" in a "#cgo LDFLAGS" directive. The Apple linker recombines the separated arguments "-l" and "to_library" into "-lto_library", which loads an arbitrary LTO plugin dynamic library at link time. The go command now disallows "-l" followed by "to_library" in "#cgo LDFLAGS", rejects "-lazy_library", "-lazy_framework", "-load_hidden", "-library", and "-library-path", and checks recombined "-l" arguments against disallowed linker flags and patterns.

CVSS3: 8.8
nvd
16 дней назад

On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing "-l to_library <path>" in a "#cgo LDFLAGS" directive. The Apple linker recombines the separated arguments "-l" and "to_library" into "-lto_library", which loads an arbitrary LTO plugin dynamic library at link time. The go command now disallows "-l" followed by "to_library" in "#cgo LDFLAGS", rejects "-lazy_library", "-lazy_framework", "-load_hidden", "-library", and "-library-path", and checks recombined "-l" arguments against disallowed linker flags and patterns.

CVSS3: 8.1
msrc
15 дней назад

Arbitrary code execution during build on darwin via "-l to_library" in cgo in cmd/go

CVSS3: 8.8
debian
16 дней назад

On Darwin, building a malicious package that uses cgo could cause arbi ...

CVSS3: 8.8
github
16 дней назад

On Darwin, building a malicious package that uses cgo could cause arbitrary code execution when using the Apple linker due to passing "-l to_library <path>" in a "#cgo LDFLAGS" directive. The Apple linker recombines the separated arguments "-l" and "to_library" into "-lto_library", which loads an arbitrary LTO plugin dynamic library at link time. The go command now disallows "-l" followed by "to_library" in "#cgo LDFLAGS", rejects "-lazy_library", "-lazy_framework", "-load_hidden", "-library", and "-library-path", and checks recombined "-l" arguments against disallowed linker flags and patterns.

EPSS

Процентиль: 17%
0.00252
Низкий

7.8 High

CVSS3