CVE-2022-30580

Empty Cmd.Path can trigger unintended binary in os/exec on Windows

Published Aug 9, 2022 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-52429 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.
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Mar 6, 2026, 5:34 PM
Reserved
May 11, 2022, 12:00 AM
Status
Modified
Published
Aug 10, 2022, 8:15 PM
Modified
Jun 17, 2026, 4:43 AM
Severity
Moderate
Public date
Aug 10, 2022, 12:00 AM