CVEvulnerability
CVE-2022-41716
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-11-02
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 6.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Description
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 configurations
• golang go (< 1.18.8)
• golang go (>= 1.19.0 < 1.19.3)
References
- https://go.dev/cl/446916 Patch, Vendor Advisory
- https://go.dev/issue/56284 Issue Tracking, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ Patch, Release Notes, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2022-1095 Vendor Advisory
- https://go.dev/cl/446916 Patch, Vendor Advisory
- https://go.dev/issue/56284 Issue Tracking, Patch, Vendor Advisory
- https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ Patch, Release Notes, Vendor Advisory
- https://pkg.go.dev/vuln/GO-2022-1095 Vendor Advisory
- https://security.netapp.com/advisory/ntap-20230120-0007/ security.netapp.com