cve.bz

CVE-2022-30580 golang go: Code Injection

7.8 highEPSS 0.7%Fix available

High (7.8) in golang go. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.17.11, 1.18.3.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-02-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-30580 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-30580?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-30580?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-30580 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library os/execbefore 1.17.11
Go standard library os/execfrom 1.18.0-0 before 1.18.3

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2022-0532Gostdlib<1.17.11
>=1.18.0-0 <1.18.3
1.17.11, 1.18.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morego1.18-openssl1.18.10.1-150000.1.9.1SUSE-SU-2023:2312-1
SUSELinux Enterprise Module for Development Tools 15 SP3, Linux Enterprise Module for Development Tools 15 SP4go1.171.17.11-150000.1.37.1SUSE-SU-2022:2004-1
SUSELinux Enterprise Module for Development Tools 15 SP3, Linux Enterprise Module for Development Tools 15 SP4go1.181.18.3-150000.1.20.1SUSE-SU-2022:2005-1
openSUSELeap 15.3, Leap 15.4go1.171.17.11-150000.1.37.1SUSE-SU-2022:2004-1
openSUSELeap 15.3, Leap 15.4go1.181.18.3-150000.1.20.1SUSE-SU-2022:2005-1
openSUSELeap 15.4, Leap 15.5go1.18-openssl1.18.10.1-150000.1.9.1SUSE-SU-2023:2312-1
openSUSETumbleweedgo1.171.17.11-1.1openSUSE-SU-2024:12123-1
openSUSETumbleweedgo1.181.18.3-1.1openSUSE-SU-2024:12124-1
Alpinev3.16go1.18.4-r0ALPINE-CVE-2022-30580
Azure Linux2golang1.18.5-1AZL-10532
Azure Linux3golangno fix listedAZL-79108 AZL-98856

From the distributions' data via OSV.dev: SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The CVE-2022-30580 affects windows only, where empty Cmd.Path can result in running unintended binary on Windows.

Packages shipped with Red Hat Enterprise Linux - 8 and 9 are unaffected.

ProductPackageStateAdvisory
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-loki-rhel9Not affected
Migration Toolkit for Containersrhmtc/openshift-velero-plugin-rhel8Not affected
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-controller-rhel9Not affected
mirror registry for Red Hat OpenShiftmirror-registry-containerNot affected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel8-operatorNot affected
Node Maintenance Operatorworkload-availability/node-maintenance-rhel8-operatorNot affected
OpenShift API for Data Protectionoadp/oadp-velero-rhel9Not affected
OpenShift Developer Tools and ServiceshelmNot affected
OpenShift Developer Tools and Servicesocp-tools-4/jenkins-rhel8Not affected
OpenShift Developer Tools and ServicesodoNot affected
OpenShift Pipelinesopenshift-pipelines-clientNot affected
OpenShift Secondary Scheduler Operatoropenshift-secondary-scheduler-operator/secondary-scheduler-rhel9-operatorNot affected
OpenShift Serverlessopenshift-serverless-1/client-kn-rhel8Not affected
OpenShift Serverlessopenshift-serverless-clientsNot affected
OpenShift Service Mesh 2openshift-golang-builder-containerNot affected
Red Hat 3scale API Management Platform 23scale-operator-containerNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/subctl-rhel9Not affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Not affected
Red Hat Ansible Automation Platform 2openshift-clientsNot affected
85 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-30580.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON