CVE-2022-41716
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".
How to fix
- golang go1.18.8, 1.19.3 or later
- stdlib1.18.8, 1.19.3 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| golang go | v < 1.18.8, 1.19.0 ≤ v < 1.19.3 | 1.18.8, 1.19.3 |
| stdlibGo | v < 1.18.8, 1.19.0-0 ≤ v < 1.19.3 | 1.18.8, 1.19.3 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.