{"id":"CVE-2022-41716","published":"2022-11-02T15:28:19Z","modified":"2024-10-30T13:59:43Z","title":"Unsanitized NUL in environment variables on Windows in syscall and os/exec","vendor":"Go standard library","product":"syscall","tier":"tail","description":{"text":"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\".","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01027,"percentile":0.6443,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/issue/56284","tags":[]},{"url":"https://go.dev/cl/446916","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2022-1095","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20230120-0007/","tags":[]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":12.89},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"syscall","versions":["< 1.18.8",">= 1.19.0-0, < 1.19.3"]},{"vendor":"Go standard library","product":"os/exec","versions":["< 1.18.8",">= 1.19.0-0, < 1.19.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-08-01T14:02:04.861393Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.18.8",">=1.19.0-0, <1.19.3"],"patched":["1.18.8","1.19.3"],"from":["GO-2022-1095"],"provenance":"source"}],"summary":{"text":"The Go standard library's syscall package (including syscall.StartProcess and os/exec.Cmd) on Windows fails to check for NUL characters in environment variable values, so a crafted value can inject additional environment variables. An attacker who can influence the environment passed to a spawned process, with low privileges and no user interaction over the network, could set variables beyond the intended one, such as the example \"A=B\\x00C=D\" which sets both A and C.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:35Z"},"euvd":{"id":"EUVD-2022-44892","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-2879","published":"2022-10-14","fixed":"1.19.2","kev":false,"link":{"from":"CVE-2022-2879","to":"CVE-2022-41716","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.18.7","toFixed":"1.18.8","daysApart":19}]}},{"cve":"CVE-2022-2880","published":"2022-10-14","fixed":"1.19.2","kev":false},{"cve":"CVE-2022-41715","published":"2022-10-14","fixed":"1.19.2","kev":false},{"cve":"CVE-2022-41716","published":"2022-11-02","fixed":"1.19.3","kev":false},{"cve":"CVE-2022-41717","published":"2022-12-08","fixed":"1.19.4","kev":false,"link":{"from":"CVE-2022-41716","to":"CVE-2022-41717","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.18.8","toFixed":"1.18.9","daysApart":36}]}},{"cve":"CVE-2022-41720","published":"2022-12-07","fixed":"1.19.4","kev":false,"link":{"from":"CVE-2022-41716","to":"CVE-2022-41720","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.18.8","toFixed":"1.18.9","daysApart":35}]}},{"cve":"CVE-2023-45287","published":"2023-12-05","fixed":"1.20.0","kev":false}],"package":"Go:stdlib"}}