CVE-2023-29404
Improper handling of non-optional LDFLAGS in go command with cgo in cmd/go
9.8
CRITICAL
CVSS 3.1
EPSS 1.8%
描述
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. The arguments for a number of flags which are non-optional are incorrectly considered optional, allowing disallowed flags to be smuggled through the LDFLAGS sanitization. This affects usage of both the gc and gccgo compilers.
如何修補 CVE-2023-29404
要修補 CVE-2023-29404,請將受影響套件升級到下列已修補版本。
- —升級至 1.19.10 或更新版本
- —未列出修補版本
- —未列出修補版本
- —升級至 1.19.10 或更新版本
CVE-2023-29404 正在被利用嗎?
低 — EPSS 為 1.8%,目前沒有觀察到大規模利用活動。
受影響套件(4)
- from 0, < 1.19.10, >= 1.20.0, < 1.20.5
- from 0
- from 0
- from 0, < 1.19.10, >= 1.20.0-0, < 1.20.5
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |