CVE-2021-3115

golang: cmd/go: packages using cgo can cause arbitrary code execution at build time

Published Jan 26, 2021 CVSS 3.1 · 7.5 High EPSS 6.9% KEV · Not listed
Description
Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).

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-2021-26467 Go before 1.14.14 and 1.15.x before 1.15.7 on Windows is vulnerable to Command Injection and remote code execution when using the "go get" command to fetch modules that make use of cgo (for example, cgo can execute a gcc program from an untrusted download).
History

No history.

Weaknesses
  • CWE-427

    Uncontrolled Search Path Element

  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 4:45 PM
Reserved
Jan 11, 2021, 12:00 AM
Status
Modified
Published
Jan 26, 2021, 6:16 PM
Modified
Jun 17, 2026, 4:04 AM
Severity
Moderate
Public date
Jan 20, 2021, 12:00 AM