{"id":"CVE-2022-30580","published":"2022-08-09T20:18:04Z","modified":"2026-03-06T17:34:03Z","title":"Empty Cmd.Path can trigger unintended binary in os/exec on Windows","vendor":"Go standard library","product":"os/exec","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00701,"percentile":0.54137,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://go.dev/cl/403759","tags":[]},{"url":"https://go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e","tags":[]},{"url":"https://go.dev/issue/52574","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2022-0532","tags":[]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":10.83},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"os/exec","versions":["< 1.17.11",">= 1.18.0-0, < 1.18.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-24T20:37:17.158647Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.17.11",">=1.18.0-0, <1.18.3"],"patched":["1.17.11","1.18.3"],"from":["GO-2022-0532"],"provenance":"source"}],"summary":{"text":"The flaw is a code injection issue in the os/exec package of the Go standard library, where Cmd.Start can run an unintended binary when Cmd.Path is left empty on Windows. An attacker who can place a file named \"..com\" or \"..exe\" in the program's working directory can get it executed by calling Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput while Cmd.Path is unset, which requires local access with low privileges and no user interaction, and affects Go versions before 1.17.11 and 1.18.3.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:01Z"},"euvd":{"id":"EUVD-2022-52429","exploited":false,"provenance":"source"}}