Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-30580

golang: os/exec: Code injection in Cmd.Start

Overview

Published
10 Aug 2022
Modified
17 Jun 2026
High CVE
2 Registry packages
22 OS packages
5 Linux distributions
Yes Fix available

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

Packages affected by CVE-2022-30580
EcosystemPackageVulnerableFixed in
Bitnami golang <1.17.11>=1.18.0, <1.18.3 1.17.111.18.3
Go stdlib <1.17.11>=1.18.0-0, <1.18.3 1.17.111.18.3

Open a package to see all its vulnerabilities.

Operating systems · 12 fixes

Oracle Linux 1 release · 3 packages

fixed 3
golang go-toolset delve
Oracle Linux fixes for CVE-2022-30580
ReleasePackageFixed 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
Photon OS fixes for CVE-2022-30580
ReleasePackageFixed 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
SUSE Linux Enterprise fixes for CVE-2022-30580
ReleasePackageFixed inAdvisory
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
amazon linux fixes for CVE-2022-30580
ReleasePackageFixed in
2023 golang +7 1.19.8-1.amzn2023.0.1

openSUSE 1 release · 2 packages

fixed 2
go1-17 go1-18
openSUSE fixes for CVE-2022-30580
ReleasePackageFixed inAdvisory
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

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.