CVE-2023-24531
CRITICAL9.8EPSS 0.60%Output of "go env" does not sanitize values in cmd/go
發布日:2024/7/2修改日:2026/4/28
也稱為:DEBIAN-CVE-2023-24531
描述
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.
受影響套件(4)
- Bitnami/golangfrom 0, < 1.21.0-0
- Debian/golang-1.15from 0
- Debian/golang-1.19from 0
- Go/toolchainfrom 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 |
參考連結(8)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2023-24531
- PATCHhttps://go.dev/cl/488375
- PATCHhttps://go.dev/cl/493535
- REPORThttps://go.dev/issue/58508
- WEBhttps://groups.google.com/g/golang-dev/c/ixHOFpSbajE/m/8EjlbKVWAwAJ
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2023-24531
- WEBhttps://pkg.go.dev/vuln/GO-2024-2962
- WEBhttps://security.netapp.com/advisory/ntap-20250328-0005/