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

exploitDog

redhat логотип

CVE-2023-29405

Опубликовано: 08 июн. 2023
Источник: redhat
CVSS3: 7.5

Описание

The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.

A flaw was found in golang. The go command may execute arbitrary code at build time when using cgo. This can occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This can be triggered by linker flags, specified via a "#cgo LDFLAGS" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.

Отчет

This vulnerability is only applicable to customer use of the GCCGO compiler and not any pre-compiled golang binaries shipped by Red Hat.

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

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Ceph Storage 3golangAffected
Red Hat Storage 3golangAffected
Red Hat Storage 3go-toolset-7-golangAffected
Red Hat Ceph Storage 5.3rhceph/keepalived-rhel8FixedRHSA-2024:411926.06.2024
Red Hat Ceph Storage 5.3rhceph/rhceph-5-dashboard-rhel8FixedRHSA-2024:411926.06.2024
Red Hat Ceph Storage 5.3rhceph/rhceph-5-rhel8FixedRHSA-2024:411926.06.2024
Red Hat Ceph Storage 5.3rhceph/rhceph-haproxy-rhel8FixedRHSA-2024:411926.06.2024
Red Hat Ceph Storage 5.3rhceph/snmp-notifier-rhel8FixedRHSA-2024:411926.06.2024
Red Hat Developer Toolsgo-toolset-1.19FixedRHSA-2023:392029.06.2023
Red Hat Developer Toolsgo-toolset-1.19-golangFixedRHSA-2023:392029.06.2023

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

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

Статус:

Important
Дефект:
CWE-74
https://bugzilla.redhat.com/show_bug.cgi?id=2217569golang: cmd/cgo: Arbitrary code execution triggered by linker flags

7.5 High

CVSS3

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

CVSS3: 9.8
ubuntu
около 2 лет назад

The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.

CVSS3: 9.8
nvd
около 2 лет назад

The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.

CVSS3: 9.8
debian
около 2 лет назад

The go command may execute arbitrary code at build time when using cgo ...

CVSS3: 9.8
github
около 2 лет назад

The go command may execute arbitrary code at build time when using cgo. This may occur when running "go get" on a malicious module, or when running any other command which builds untrusted code. This is can by triggered by linker flags, specified via a "#cgo LDFLAGS" directive. Flags containing embedded spaces are mishandled, allowing disallowed flags to be smuggled through the LDFLAGS sanitization by including them in the argument of another flag. This only affects usage of the gccgo compiler.

CVSS3: 9.8
fstec
около 2 лет назад

Уязвимость расширения Cgo языка программирования Go, позволяющая нарушителю выполнить произвольный код

7.5 High

CVSS3