---
title: "CVE-2021-3115\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2021-3115?format=md
keywords: index, follow
---

# CVE-2021-3115

Publication date 26 January 2021

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2021-3115?format=md#impact-score)

Toggle side navigation

## 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).

[Read the notes from the security team](https://ubuntu.com/security/CVE-2021-3115?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| golang | 20.10 groovy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.10 | 20.10 groovy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |
| golang-1.13 | 20.10 groovy | Not affected |
| 20.04 LTS focal | Not affected |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not in release |
| golang-1.14 | 20.10 groovy | Not affected |
| 20.04 LTS focal | Not affected |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.15 | 20.10 groovy | Not affected |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.6 | 20.10 groovy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not in release |
| golang-1.8 | 20.10 groovy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| golang-1.9 | 20.10 groovy | Not in release |
| 20.04 LTS focal | Not in release |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2021-3115?format=md#patch-details)

## Notes

---

### [sbeattie](https://launchpad.net/~sbeattie)

Windows only

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| golang-1.15 | * Upstream:   [e8e7fac](https://github.com/golang/go/commit/e8e7facfaa47bf21007c0a1c679debba52ec3ea0) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | High |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3115)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2021-3115)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2021-3115)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2021-3115)

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2021-3115>
