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

exploitDog

redhat логотип

CVE-2023-29405

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

Описание

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

EPSS

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

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
msrc
2 месяца назад

Improper sanitization of LDFLAGS with embedded spaces in go command with cgo in cmd/go

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.

EPSS

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

7.5 High

CVSS3