CVE-2023-24531
Output of "go env" does not sanitize values in cmd/go
9.8
CRITICAL
CVSS 3.1
EPSS 0.83%
描述
Command go env is documented as outputting a shell script containing the Go environment. However, go env doesn't sanitize values, so executing its output as a shell script can cause various bad bahaviors, including executing arbitrary commands or inserting new environment variables. This issue is relatively minor because, in general, if an attacker can set arbitrary environment variables on a system, they have better attack vectors than making "go env" print them out.
如何修補 CVE-2023-24531
要修補 CVE-2023-24531,請將受影響套件升級到下列已修補版本。
- —升級至 1.21.0-0 或更新版本
- —未列出修補版本
- —未列出修補版本
- —升級至 1.21.0-0 或更新版本
CVE-2023-24531 正在被利用嗎?
低 — EPSS 為 0.8%,目前沒有觀察到大規模利用活動。
受影響套件(4)
- from 0, < 1.21.0-0
- from 0
- from 0
- from 0, < 1.21.0-0
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 |