CVE-2022-41716
6.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Summary
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".
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Go standard library | syscall | 0 < 1.18.8 | affected |
| Go standard library | syscall | 1.19.0-0 < 1.19.3 | affected |
| Go standard library | os/exec | 0 < 1.18.8 | affected |
| Go standard library | os/exec | 1.19.0-0 < 1.19.3 | affected |
Weaknesses
- CWE-158: Improper Neutralization of Null Byte or NUL Character
ADP Enrichment
CVE Program Container
Additional References
- https://security.netapp.com/advisory/ntap-20230120-0007/
- https://go.dev/issue/56284
- https://go.dev/cl/446916
- https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ
- https://pkg.go.dev/vuln/GO-2022-1095
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
References
- https://go.dev/issue/56284
- https://go.dev/cl/446916
- https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ
- https://pkg.go.dev/vuln/GO-2022-1095
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.