CVE-2020-8562 Bypass of Kubernetes API Server proxy TOCTOU
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- KubernetesUbuntuDebian
Description
As mitigations to a report from 2019 and CVE-2020-8555, Kubernetes attempts to prevent proxied connections from accessing link-local or localhost networks when making user-driven connections to Services, Pods, Nodes, or StorageClass service providers. As part of this mitigation Kubernetes does a DNS name resolution check and validates that response IPs are not in the link-local (169.254.0.0/16) or localhost (127.0.0.0/8) range. Kubernetes then performs a second DNS resolution without validation for the actual connection. If a non-standard DNS server returns different non-cached responses, a user may be able to bypass the proxy IP restriction and access private networks on the control plane.
Upgrade path
8 packages: 3 fixed, 2 partially fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/kubernetes(Ubuntu 22.04) | = 1.0; All versions | No fix listed | No fix yet |
| ubuntu/kubernetes(Ubuntu 24.04) | = 1.0; All versions | No fix listed | No fix yet |
| ubuntu/kubernetes(Ubuntu Pro 20.04) | = 1.0; All versions | No fix listed | No fix yet |
| Kubernetes | <= 1.18.18; = 1.21.0; >= 1.19.0, <= 1.19.10; >= 1.20.0, <= 1.20.6 +1 more | after 1.18.18, 1.19.10, 1.20.6 | Partially fixed |
| Kubernetes(Go) | <= 1.18.19; >= 1.19.0, <= 1.19.11; >= 1.20.0, <= 1.20.7; >= 1.21.0, <= 1.21.1 +1 more | after 1.18.19, 1.19.11, 1.20.7, 1.21.1 | Partially fixed |
| debian/kubernetes(Debian 12) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 | Fixed |
| debian/kubernetes(Debian 13) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 | Fixed |
| debian/kubernetes(Debian 14) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Kubernetes(Go) | >= 1.21.0, <= 1.21.1 | No fix listed |
| Kubernetes(Go) | >= 1.20.0, <= 1.20.7 | No fix listed |
| Kubernetes(Go) | >= 1.19.0, <= 1.19.11 | No fix listed |
| Kubernetes(Go) | <= 1.18.19 | No fix listed |
| Kubernetes(Go) | All versions | No fix listed |
| debian/kubernetes(Debian:12) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 |
| debian/kubernetes(Debian:13) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 |
| debian/kubernetes(Debian:14) | < 1.20.5+really1.20.2-1 | 1.20.5+really1.20.2-1 |
| Kubernetes | <= 1.18.18 | No fix listed |
| Kubernetes | >= 1.19.0, <= 1.19.10 | No fix listed |
| Kubernetes | >= 1.20.0, <= 1.20.6 | No fix listed |
| Kubernetes | = 1.21.0 | No fix listed |
| Kubernetes | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:Pro:20.04) | = 1.0 | No fix listed |
| ubuntu/kubernetes(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:22.04) | = 1.0 | No fix listed |
| ubuntu/kubernetes(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/kubernetes(Ubuntu:24.04) | = 1.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- CVE-2020-8562 issue-tracking mitigation third-party-advisory vendor-advisory
- github.com product
- groups.google.com mailing-list third-party-advisory
- kubernetes.io
- security.netapp.com third-party-advisory
- github.com vendor-advisory
- Debian Security Tracker CVE-2020-8562 vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- www.openwall.com issue-tracking
- www.cve.org issue-tracking