CVE-2020-8559 is a medium-severity (CVSS 6.8) Open Redirect vulnerability in k8s.io/apimachinery. 6 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for k8s.io/apimachinery — see the affected versions and patch details below.
Privilege Escalation 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/apimachinery🐹k8s.io/apimachinery🐹k8s.io/apimachinery🐹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
The Kubernetes kube-apiserver in versions v1.6-v1.15, and versions prior to v1.16.13, v1.17.9 and v1.18.6 are vulnerable to an unvalidated redirect on proxied upgrade requests that could allow an attacker to escalate privileges from a node compromise to a full cluster compromise.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | k8s.io/apimachinery | all versions | 0.16.13go get k8s.io/apimachinery@v0.16.13 |
| 🐹Go | k8s.io/apimachinery | ≥ 0.17.0&&< 0.17.9 | 0.17.9go get k8s.io/apimachinery@v0.17.9 |
| 🐹Go | k8s.io/apimachinery | ≥ 0.18.0&&< 0.18.7 | 0.18.7go get k8s.io/apimachinery@v0.18.7 |
| 🐹Go | k8s.io/kubernetes | all versions | 1.16.13go get k8s.io/kubernetes@v1.16.13 |
| 🐹Go | k8s.io/kubernetes | ≥ 1.17.0&&< 1.17.9 | 1.17.9go get k8s.io/kubernetes@v1.17.9 |
| 🐹Go | k8s.io/kubernetes | ≥ 1.18.0&&< 1.18.7 | 1.18.7go get k8s.io/kubernetes@v1.18.7 |
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/apimachinery, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update k8s.io/apimachinery to 0.16.13 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-8559 is resolved across your whole dependency graph.
Workarounds
Stop reflecting attacker-controlled destinations: resolve every redirect target against an allowlist of paths or hosts you own, prefer a server-side key over a full URL in the request, and reject absolute URLs entirely where the flow only ever needs a relative one.
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.
Kubernetes is embedded in the version of heketi shipped with Red Hat Gluster Storage 3. However, it does not use Kubernetes API server part and only uses client side bits. Hence, this flaw does not affect heketi.
No mitigation is known.Source: Red Hat security advisory for CVE-2020-8559 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat OpenShift Container Platform 3.11 | atomic-openshift-0:3.11.346-1.git.0.ea10721.el7 | RHSA-2020:5363 |
| Red Hat OpenShift Container Platform 4.4 | openshift-0:4.4.0-202012052258.p0.git.0.0fd57a4.el7 | RHSA-2021:0030 |
| Red Hat OpenShift Container Platform 4.4 | openshift4/ose-hyperkube:v4.4.0-202101261542.p0 | RHSA-2021:0281 |
| Red Hat OpenShift Container Platform 4.5 | openshift4/ose-hyperkube:v4.5.0-202011211036.p0 | RHSA-2020:5194 |
| Red Hat OpenShift Container Platform 4.6 | openshift-0:4.6.0-202010022112.p0.git.94033.ef41184.el7 | RHBA-2020:4197 |
| Red Hat OpenShift Container Platform 4.6 | openshift4/ose-hyperkube:v4.6.0-202010081843.p0 | RHSA-2020:4298 |
Frequently Asked Questions
Is CVE-2020-8559 in your dependencies?
Find it across Go, including transitive dependencies.