Vulnerability in Golang Go
CVE-2022-41716
Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows. In syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not properly checked for. A malicious environment variable value can exploit this behavior to set a value for a different environment variable. For example, the environment variable string "A=B\x00C=D" sets the variables "A=B" and "C=D".
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.010, 64.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Standard Library Os/exec — versions 0, 1.19.0-0
- Go Standard Library Syscall — versions 0, 1.19.0-0
Public exploits and proof-of-concept code
Also mentioned in 9 other repositories (8-cm/kube-dump, agadecki/malware-cryptominer-container, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- go.dev/issue/56284 (Patch, Issue Tracking, Vendor Advisory)
- go.dev/cl/446916 (Patch, Vendor Advisory)
- groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ (Patch, Release Notes, Vendor Advisory)
- pkg.go.dev/vuln/GO-2022-1095 (Vendor Advisory)
- security.netapp.com/advisory/ntap-20230120-0007/