CVE-2020-8558 — kubernetes
HIGHCVE-2020-8558 is a high-severity (CVSS 8.8) CWE-420 vulnerability in k8s.io/kubernetes. 6 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for k8s.io/kubernetes — see the affected versions and patch details below.
Improper Authentication in Kubernetes
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
k8s.io/kubernetes🐹k8s.io/kubernetes🐹k8s.io/kubernetesReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
A security issue was discovered in the Kubelet and kube-proxy components of Kubernetes which allows adjacent hosts to reach TCP and UDP services bound to 127.0.0.1 running on the node or in the node's network namespace. For example, if a cluster administrator runs a TCP service on a node that listens on 127.0.0.1:1234, because of this bug, that service would be potentially reachable by other hosts on the same LAN as the node, or by containers running on the same node as the service. If the example service on port 1234 required no additional authentication (because it assumed that only other localhost processes could reach it), then it could be vulnerable to attacks that make use of this bug.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | k8s.io/kubernetes | ≥ 1.18.0&&< 1.18.4 | 1.18.4go get k8s.io/kubernetes@v1.18.4 |
| 🐹Go | k8s.io/kubernetes | ≥ 1.17.0&&< 1.17.7 | 1.17.7go get k8s.io/kubernetes@v1.17.7 |
| 🐹Go | k8s.io/kubernetes | all versions | 1.16.11go get k8s.io/kubernetes@v1.16.11 |
Affected Products
kuberneteskubernetesResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for k8s.io/kubernetes, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update k8s.io/kubernetes to 1.18.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-8558 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
OpenShift Container Platform does not expose the API server on a localhost port without authentication. The only service exposed on a localhost port not protected by authentication is Metrics, which exposes some cluster metadata.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat OpenShift Container Platform 3.11 | atomic-openshift-0:3.11.248-1.git.0.92ee8ac.el7 | RHSA-2020:2992 |
| Red Hat OpenShift Container Platform 4.3 | openshift-0:4.3.31-202007280738.p0.git.0.9884401.el7 | RHSA-2020:3183 |
| Red Hat OpenShift Container Platform 4.3 | openshift4/ose-hyperkube:v4.3.31-202007272153.p0 | RHSA-2020:3184 |
| Red Hat OpenShift Container Platform 4.4 | openshift4/ose-hyperkube:v4.4.0-202007120152.p0 | RHSA-2020:2926 |
| Red Hat OpenShift Container Platform 4.4 | openshift-0:4.4.0-202007090832.p0.git.0.bc32fb1.el7 | RHSA-2020:2927 |
| Red Hat OpenShift Container Platform 4.5 | openshift4/ose-hyperkube:v4.5.0-202007100518.p0 | RHSA-2020:2412 |
| Red Hat OpenShift Container Platform 4.5 | openshift-0:4.5.0-202007012112.p0.git.0.582d7fc.el7 | RHSA-2020:2413 |
| Red Hat OpenShift Container Platform 4.6 | openshift4/ose-aws-ebs-csi-driver-rhel8:v4.6.0-202010061132.p0 | RHBA-2020:4196 |
Frequently Asked Questions
Is CVE-2020-8558 in your dependencies?
Find it across Go, including transitive dependencies.