# CVE-2022-41716: Unsanitized NUL in environment variables on Windows in syscall and os/exec

- Severity: Medium 6.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.03%, higher than 64% of CVEs (2026-12-01)
- Published: 2022-11-01T23:55:57.000Z
- Modified: 2026-09-08T08:47:48.526Z
- Also known as: GO-2022-1095, BIT-GOLANG-2022-41716
- Related: CGA-9rv3-jcj4-8wx9
- Weaknesses: CWE-158
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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".

(As written by CVE List.)

## Affected

- syscall: before 1.18.8; from 1.19.0-0 before 1.19.3
- os/exec: before 1.18.8; from 1.19.0-0 before 1.19.3
- stdlib (Go): before 1.18.8; from 1.19.0-0 before 1.19.3
- golang go: before 1.18.8; from 1.19.0 before 1.19.3
- golang (Bitnami): before 1.18.8; from 1.19.0 before 1.19.3

## Every score

- CISA-ADP: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/issue/56284> (advisory, issue-tracking, patch, report, vendor-advisory)
- <https://go.dev/cl/446916> (advisory, fix, patch, vendor-advisory)
- <https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ> (advisory, patch, release-notes, vendor-advisory, web)
- <https://pkg.go.dev/vuln/GO-2022-1095> (advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20230120-0007/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-41716> (web)

## Sources

- CVE List: [CVE-2022-41716](https://www.cve.org/CVERecord?id=CVE-2022-41716), CVE Terms of Use, modified 2024-10-30
- Go Vulnerability Database: [GO-2022-1095](https://pkg.go.dev/vuln/GO-2022-1095), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2022-41716](https://nvd.nist.gov/vuln/detail/CVE-2022-41716), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2022-41716](https://osv.dev/vulnerability/BIT-GOLANG-2022-41716), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-41716 · Whole record: https://cve.day/CVE-2022-41716.json · Rebuilt by cve.day 2026-11-25T22:58:16.185Z
