CVE-2022-30580
golang: os/exec: Code injection in Cmd.Start
Overview
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.
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-94
Affected packages · 2
Operating systems · 12 fixes
Oracle Linux 1 release · 3 packages
fixed 3
golang
go-toolset
delve
| Release | Package | Fixed in |
|---|---|---|
| 8 | golang +6 | 1.18.3-1.0.1.module+el8.6.0+20704+139a7dad |
| 8 | go-toolset | 1.18.3-1.module+el8.6.0+20704+139a7dad |
| 8 | delve | 1.8.3-1.0.1.module+el8.6.0+20704+139a7dad |
Photon OS 2 releases · 3 packages
fixed 3
go
kubernetes-dashboard
falco
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | go | 1.19-1.ph4 |
| 4.0 | kubernetes-dashboard | 2.7.0-1.ph4 |
| 5.0 | falco | 0.32.2-6.0601037001.ph5 |
SUSE Linux Enterprise 1 release · 3 packages
fixed 3
go1-17
go1-18-openssl
go1-18
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-17 +2 | 1.17.11-150000.1.37.1 | SUSE-SU-2022:2004-1 |
| 15.4 | go1-18-openssl +2 | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| 15.4 | go1-18 +2 | 1.18.3-150000.1.20.1 | SUSE-SU-2022:2005-1 |
amazon linux 1 release · 1 package
fixed 1
golang
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golang +7 | 1.19.8-1.amzn2023.0.1 |
openSUSE 1 release · 2 packages
fixed 2
go1-17
go1-18
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-17 +2 | 1.17.11-1.1 | openSUSE-SU-2024:12123-1 |
| Tumbleweed | go1-18 +2 | 1.18.3-1.1 | openSUSE-SU-2024:12124-1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-30580
- go.dev https://go.dev/cl/403759
- go.dev https://go.dev/issue/52574
- go.googlesource.com https://go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e
- groups.google.com https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ
- linux.oracle.com https://linux.oracle.com/cve/CVE-2022-30580.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2022-17957.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-30580
- pkg.go.dev https://pkg.go.dev/vuln/GO-2022-0532
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-30580
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.