CVE-2022-30580
Empty Cmd.Path can trigger unintended binary in os/exec on Windows
7.8
HIGH
CVSS 3.1
EPSS 0.07%
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.
How to fix CVE-2022-30580
To remediate CVE-2022-30580, upgrade the affected package to a fixed version below.
- —upgrade to 1.17.11 or later
- —upgrade to 1.17.11 or later
Is CVE-2022-30580 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.17.11, >= 1.18.0, < 1.18.3
- from 0, < 1.17.11, >= 1.18.0-0, < 1.18.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |