High severity · published Aug 9, 2022
CVE-2022-30580
Empty Cmd.Path can trigger unintended binary in os/exec on Windows
7.8
CVSS
0.6%
EPSS
No
On KEV
Description
Code injection in Cmd.Start in os/exec before Go 1.17.11 and Go 1.18.3 allows execution of any binaries in the working directory named either "..com" or "..exe" by calling Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 50% 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.17.11; 1.18.0-0 before 1.18.3 · source: vendor
GO
GO · Golang
before 1.17.11; 1.18.0 before 1.18.3 · source: NVD