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