CVE-2018-16873
Go · CVE-2018-16873
In Go before 1.10.6 and 1.11.x before 1.11.3, the "go get" command is vulnerable to remote code execution when executed with the -u flag and the import path of a malicious Go package, or a package that imports it directly or indirectly. Specifically, it is only vulnerable in GOPATH mode, but not in module mode (the distinction is documented at https://golang.org/cmd/go/#hdr-Module_aware_go_get). Using custom domains, it's possible to arrange things so that a Git repository is cloned to a folder named ".git" by using a vanity import path that ends with "/.git". If the Git repository root contains a "HEAD" file, a "config" file, an "objects" directory, a "refs" directory, with some work to ensure the proper ordering of operations, "go get -u" can be tricked into considering the parent directory as a repository root, and running Git commands on it. That will use the "config" file in the original Git repository root for its configuration, and if that config file contains malicious commands, they will execute on the system running "go get -u".
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 66.252% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.
CVSS 3.0 · 7.5 · published by redhatCVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Assessment source · checked 2026-11-19T12:55:04.685Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | verified | 2026-11-19T12:55:04.685Z | CVE Program |
| epss | verified | 2026-11-19T16:04:24.854Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:40.410Z | OSV |
| affected | verified | 2026-11-19T12:55:04.685Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:04.685Z | CVE Program |
Affected versions and configuration
[UNKNOWN] golang; default status: unknown: 1.10.6 [affected; scheme: unspecified]; 1.11.3 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "[UNKNOWN]",
"product": "golang",
"versions": [
{
"status": "affected",
"version": "1.10.6"
},
{
"status": "affected",
"version": "1.11.3"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "http://www.securityfocus.com/bid/106226",
"name": "106226",
"tags": [
"vdb-entry",
"x_refsource_BID",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/201812-09",
"name": "GLSA-201812-09",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
},
{
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16873",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://groups.google.com/forum/?pli=1#%21topic/golang-announce/Kw31K8G7Fi0",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-03/msg00044.html",
"name": "openSUSE-SU-2019:1079",
"tags": [
"vendor-advisory",
"x_refsource_SUSE",
"x_transferred"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00060.html",
"name": "openSUSE-SU-2019:1444",
"tags": [
"vendor-advisory",
"x_refsource_SUSE",
"x_transferred"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00011.html",
"name": "openSUSE-SU-2019:1499",
"tags": [
"vendor-advisory",
"x_refsource_SUSE",
"x_transferred"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00015.html",
"name": "openSUSE-SU-2019:1506",
"tags": [
"vendor-advisory",
"x_refsource_SUSE",
"x_transferred"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00010.html",
"name": "openSUSE-SU-2019:1703",
"tags": [
"vendor-advisory",
"x_refsource_SUSE",
"x_transferred"
]
},
{
"url": "http://lists.opensuse.org/opensuse-security-announce/2020-04/msg00041.html",
"name": "openSUSE-SU-2020:0554",
"tags": [
"vendor-advisory",
"x_refsource_SUSE",
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2021/03/msg00014.html",
"name": "[debian-lts-announce] 20210313 [SECURITY] [DLA 2591-1] golang-1.7 security update",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2021/03/msg00015.html",
"name": "[debian-lts-announce] 20210313 [SECURITY] [DLA 2592-1] golang-1.8 security update",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-05T10:32:54.055Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GO-2022-0189",
"aliases": [
"CVE-2018-16873"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.10.6"
},
{
"introduced": "1.11.0-0"
},
{
"fixed": "1.11.3"
}
]
}
],
"package": {
"name": "toolchain",
"purl": "pkg:golang/toolchain",
"ecosystem": "Go"
},
"versions": [],
"database_specific": {
"source": "https://vuln.go.dev/ID/GO-2022-0189.json"
},
"ecosystem_specific": {
"imports": [
{
"path": "cmd/go/internal/get",
"symbols": [
"downloadPackage"
]
}
]
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://go.dev/cl/154101",
"type": "FIX"
},
{
"url": "https://go.googlesource.com/go/+/bc82d7c7db83487e05d7a88e06549d4ae2a688c3",
"type": "FIX"
},
{
"url": "https://go.dev/issue/29230",
"type": "REPORT"
},
{
"url": "https://groups.google.com/g/golang-announce/c/Kw31K8G7Fi0",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2022-0189",
"review_status": "REVIEWED"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Go / package | toolchain | Not a distribution channel | 1.10.6 | Official record |
| ecosystem-boundary | Go / package | toolchain | Not a distribution channel | 1.11.3 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:55:04.685ZArchived source JSON
Source publication: 2018-12-14T14:00:00.000Z
Source modification: 2024-08-05T10:32:54.055ZDocument fingerprint
be2e6740f0dac8c8ea589df0aaee00b544a5eb35b6097c7b7e452f0757e778e6 - OSVConsulted: 2026-11-19T12:52:40.410ZArchived source JSON
Source publication: 2022-08-04T21:30:35.000Z
Source modification: 2024-05-20T16:03:47.000ZDocument fingerprint
bc4314d2fcdd026d1fe507f5e575d75cbddb3cec98f7a1d5cbcc4e6949d26bbb - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:24.854ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
30b2dc1e07a5718fe6f23c18117c6d84d73e34493e1f9d7122d8ff2c91744987
Official status history
- UNKNOWN → PUBLISHED · · evidence