CVE-2022-41716
Unsanitized NUL in environment variables on Windows in syscall and os/exec
Reported by go · Published November 2, 2022
syscall is fixed in 1.19.3 and 1.18.8 (Go Modules)
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".
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| syscall | Go Modules | 1.19.3, 1.18.8 |
| os/exec | Go Modules | 1.19.3, 1.18.8 |
| stdlib | Go Modules | 1.19.3, 1.18.8 |
| golang-src | Amazon Linux | 1.19.3-2.amzn2023.0.2 |
| golang-bin | Amazon Linux | 1.19.3-2.amzn2023.0.2 |
| golang | Bitnami | 1.19.3, 1.18.8 |
| kubeflow-katib | Wolfi | 0.19.0-r40, 0.19.0-r31 |
| golist | Amazon Linux | 0.10.1-11.amzn2023.0.3 |
| golang-race | Amazon Linux | 1.19.3-2.amzn2023.0.2 |
| golang-shared | Amazon Linux | 1.19.3-2.amzn2023.0.2 |
| golang | Amazon Linux | 1.19.3-2.amzn2023.0.2 |
| golang-misc | Amazon Linux | 1.19.3-2.amzn2023.0.2 |
5 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Go standard library | syscall | 0, 1.19.0-0 |
| Go standard library | os/exec | 0, 1.19.0-0 |
| Go standard library | syscall | 0, 1.19.0-0 |
| amazon:2023 | golang-src | 0 |
| amazon:2023 | golang-bin | 0 |
| Go standard library | os/exec | 0, 1.19.0-0 |
| alpine | go | * |
| wolfi | kubeflow-katib | 0, 0 |
| amazon:2023 | golist | 0 |
| chainguard | go-1.19 | * |
| amazon:2023 | golang-race | 0 |
| amazon:2023 | golang-shared | 0 |
| amazon:2023 | golang | 0 |
| amazon:2023 | golang-misc | 0 |
| wolfi | go-1.19 | * |
| amazon:2023 | golang-docs | 0 |
| amazon:2023 | golang-tests | 0 |
| chainguard | kubeflow-katib | 0, 0 |
Timeline
- Nov 1, 2022 CVE Published
- Nov 3, 2022 EPSS Score (30 in total, the first dated here)
- Feb 4, 2026 CVE Updated
- Mar 21, 2026 Security Advisory (4 in total, the first dated here)
- Jun 15, 2026 Coalition ESS Score
- Jul 2, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-41716
vulnetix vdb fixes CVE-2022-41716
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-41716/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart