Lucene search

K
cvelistGoCVELIST:CVE-2022-30580
HistoryAug 09, 2022 - 8:18 p.m.

CVE-2022-30580 Empty Cmd.Path can trigger unintended binary in os/exec on Windows

2022-08-0920:18:04
Go
www.cve.org
1
code injection
cmd.start
binary execution

8.3 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

14.2%

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.

CNA Affected

[
  {
    "vendor": "Go standard library",
    "product": "os/exec",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "os/exec",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.17.11",
        "status": "affected",
        "versionType": "semver"
      },
      {
        "version": "1.18.0-0",
        "lessThan": "1.18.3",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "platforms": [
      "windows"
    ],
    "programRoutines": [
      {
        "name": "Cmd.Start"
      }
    ],
    "defaultStatus": "unaffected"
  }
]