High severity · published Nov 2, 2022
CVE-2022-41716
Unsanitized NUL in environment variables on Windows in syscall and os/exec
7.5
CVSS
0.9%
EPSS
No
On KEV
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".
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 58% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OS
os/exec · Go standard library
before 1.18.8; 1.19.0-0 before 1.19.3 · source: vendor
SY
syscall · Go standard library
before 1.18.8; 1.19.0-0 before 1.19.3 · source: vendor
GO
GO · Golang
before 1.18.8; 1.19.0 before 1.19.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-41716
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-41716
Patch
https://go.dev/cl/446916
Issue Tracking
https://go.dev/issue/56284
Patch
https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ
Vendor Advisory
https://pkg.go.dev/vuln/GO-2022-1095
security.netapp.com
https://security.netapp.com/advisory/ntap-20230120-0007/
More from os/exec
7.8
CVE-2022-30580
Empty Cmd.Path can trigger unintended binary in os/exec on Windows
