{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-41716","id":"CVE-2022-41716","title":"Unsanitized NUL in environment variables on Windows in syscall and os/exec","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","descriptionLong":"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\".","published":"2022-11-02T15:28:19.574Z","updated":"2026-10-28T02:30:54.000960196Z","reserved":"2022-09-28T17:00:06.607Z","status":"Modified","rejected":false,"assigner":"Go","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"NVD"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"}],"rating":"high","products":["Go standard library syscall","Go standard library os/exec"],"affectedProducts":[{"vendor":"Go standard library","product":"syscall","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.18.8","status":"affected","versionType":"semver"},{"version":"1.19.0-0","lessThan":"1.19.3","status":"affected","versionType":"semver"}],"platforms":["windows"]},{"vendor":"Go standard library","product":"os/exec","defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"1.18.8","status":"affected","versionType":"semver"},{"version":"1.19.0-0","lessThan":"1.19.3","status":"affected","versionType":"semver"}],"platforms":["windows"]}],"packages":[{"ecosystem":"Go","name":"stdlib","purl":"pkg:golang/stdlib","ranges":["<1.18.8",">=1.19.0-0 <1.19.3"],"fixed":["1.18.8","1.19.3"],"advisory":"GO-2022-1095"}],"cwes":["CWE-158"],"aliases":["BIT-golang-2022-41716","GO-2022-1095"],"references":[{"url":"https://go.dev/issue/56284","tags":["x_transferred","Issue Tracking","Patch","Vendor Advisory","web","report"]},{"url":"https://go.dev/cl/446916","tags":["x_transferred","Patch","Vendor Advisory","web","fix"]},{"url":"https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ","tags":["x_transferred","Patch","Release Notes","Vendor Advisory","web"]},{"url":"https://pkg.go.dev/vuln/GO-2022-1095","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://security.netapp.com/advisory/ntap-20230120-0007/","tags":["advisory"]},{"url":"https://pkg.go.dev","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41716.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41716","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.01027,"epssPercentile":0.64319,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-41716","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41716","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-41716","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-41716","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}