Back
CVE-2022-41716
Unsanitized NUL in environment variables on Windows in syscall and os/exec
Medium6.3EPSS 1.0%
- Published
- Updated
- Reserved
- Assigned by
- Go
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".
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| NVDNVD · Modified | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
- EPSS (exploitation in 30 days)
- 1.0% · top 36% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.3.
Weakness
- CWE-158: Improper Neutralization of Null Byte or NUL Character
Affected products
- affected < 1.18.8
- affected 1.19.0-0 – < 1.19.3
- affected < 1.18.8
- affected 1.19.0-0 – < 1.19.3
References (5)
- https://go.dev/issue/56284 (opens in a new tab)x_transferred
- https://go.dev/cl/446916 (opens in a new tab)x_transferred
- https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ (opens in a new tab)x_transferred
- https://pkg.go.dev/vuln/GO-2022-1095 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20230120-0007/ (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-41716)Record last updated .