7.8

CVE-2022-30580: Empty Cmd.Path can trigger unintended binary in os/exec on Windows

Modified
AliasesGO-2022-0532BIT-golang-2022-30580ALPINE-CVE-2022-30580
Published 09-08-2022Last modified 06-03-2026

Vulnerability summary

CVE-2022-30580 is a high (CVSS 7.8) Improper Control of Generation of Code vulnerability in go standard library os/exec. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 53.2% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (CVE.org)
EPSS score
0.70%
0%100%
Low · +0.07 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 5 · Related 5

Timeline

  1. 09-08-2022
    PublishedVulnerability first disclosed.
  2. 06-03-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.70%

Chance of exploitation in the next 30 days

Percentile

53%

Versus all other CVEs

30-day change

Increase +0.07 pp

From 0.63% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • go≥ 1.18.0, < 1.18.4-r0
Go1 product
  • stdlib≥ 1.18.0-0, < 1.18.3
Go standard library1 product
  • os/exec< 1.17.11 | ≥ 1.18.0-0, < 1.18.3
Golang1 product
  • go< 1.17.11 | ≥ 1.18.0, < 1.18.3

4 vendors · 4 products

References

7 links