CVE-2018-16886: Go.etcd.io/etcd/v3 Authentication Bypass Vulnerability
HIGHCVE-2018-16886 is a HIGH (CVSS 8.1) authentication bypass vulnerability (CWE-287: Improper Authentication) affecting Go.etcd.io/etcd/v3 libraries in the Go ecosystem. The issue involves go.etcd.io/etcd authentication bypass. Remediation is available by upgrading affected packages to version 3.2.26, 3.3.11, 0.5.0-alpha.5.0.20190108173120-83c051b701d3.
CVE-2018-16886 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2018-16886
To remediate this vulnerability, upgrade all affected Go.etcd.io/etcd/v3 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade go.etcd.io/etcd/v3 to 3.2.26
Upgrade go.etcd.io/etcd/v3 to 3.3.11
Upgrade go.etcd.io/etcd to 0.5.0-alpha.5.0.20190108173120-83c051b701d3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for go.etcd.io/etcd/v3
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-16886, inspect your project dependencies for Go.etcd.io/etcd/v3:
inspect dependencies for go.etcd.io/etcd/v3
Analyze the terminal output to locate any version of Go.etcd.io/etcd/v3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.26), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Go.etcd.io/etcd/v3, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-16886 Affected Go.etcd.io/etcd/v3 Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
go.etcd.io/etcd/v3
|
Go |
≥ 3.2.0
< 3.2.26
|
3.2.26
|
|
go.etcd.io/etcd/v3
|
Go |
≥ 3.3.0
< 3.3.11
|
3.3.11
|
|
go.etcd.io/etcd
|
Go |
< 0.5.0-alpha.5.0.20190108173120-83c051b701d3
|
0.5.0-alpha.5.0.20190108173120-83c051b701d3
|
References
Frequently Asked Questions
What is CVE-2018-16886?
Which Go.etcd.io/etcd/v3 versions are affected?
What version fixes CVE-2018-16886?
Is go.etcd.io/etcd/v3 affected?
Is go.etcd.io/etcd affected?
What is the CVSS score of CVE-2018-16886?
What CWE is associated with CVE-2018-16886?
How can I check Go dependencies for CVE-2018-16886?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h6xx-pmxh-3wgp",
"modified" : "2023-08-30T11:13:45Z",
"published" : "2022-04-12T22:41:32Z",
"aliases" : [ "CVE-2018-16886" ],
"summary" : "go.etcd.io/etcd Authentication Bypass",
"details" : "etcd versions 3.2.x before 3.2.26 and 3.3.x before 3.3.11 are vulnerable to an improper authentication issue when role-based access control (RBAC) is used and client-cert-auth is enabled. If an etcd client server TLS certificate contains a Common Name (CN) which matches a valid RBAC username, a remote attacker may authenticate as that user with any valid (trusted) client certificate in a REST API request to the gRPC-gateway.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "go.etcd.io/etcd/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.2.0"
}, {
"fixed" : "3.2.26"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "go.etcd.io/etcd/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.3.0"
}, {
"fixed" : "3.3.11"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "go.etcd.io/etcd"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.5.0-alpha.5.0.20190108173120-83c051b701d3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-16886"
}, {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/pull/10366"
}, {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/commit/0191509637546621d6f2e18e074e955ab8ef374d"
}, {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/commit/bf9d0d8291dc71ecbfb2690612954e1a298154b2"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:0237"
}, {
"type" : "WEB",
"url" : "https://access.redhat.com/errata/RHSA-2019:1352"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-16886"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/etcd-io/etcd"
}, {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/blob/1eee465a43720d713bb69f7b7f5e120135fdb1ac/CHANGELOG-3.2.md#security-authentication"
}, {
"type" : "WEB",
"url" : "https://github.com/etcd-io/etcd/blob/1eee465a43720d713bb69f7b7f5e120135fdb1ac/CHANGELOG-3.3.md#security-authentication"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JX7QTIT465BQGRGNCE74RATRQLKT2QE4"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UPGYHMSKDPW5GAMI7BEP3XQRVRLLBJKS"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2021-0077"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/106540"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-285", "CWE-287" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2021-05-19T21:49:34Z",
"nvd_published_at" : null
}
}