RCE in Golang Go
CVE-2022-30580
- CVSS v3
- 7.8 High
- Public exploits
- None known
- EPSS
- 0.007 · 53.8th percentile
- Published
- 2022-08-10
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.007, 53.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Standard Library Os/exec — versions 0, 1.18.0-0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 9 other repositories (8-cm/kube-dump, agadecki/malware-cryptominer-container, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- go.dev/cl/403759 (Vendor Advisory)
- go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e (Patch, Mailing List, Vendor Advisory)
- go.dev/issue/52574 (Third Party Advisory, Issue Tracking)
- groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ (Mailing List, Third Party Advisory)
- pkg.go.dev/vuln/GO-2022-0532 (Vendor Advisory)