CVE-2020-8562

Bypass of Kubernetes API Server proxy TOCTOU

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.

Remediation

Workaround:

  • If this issue affects your clusters’ control planes, you can use dnsmasq for name resolution and configure the min-cache-ttl and neg-ttl parameters to a low non-zero value to enforce cached replies for proxied connections

Category

2.2
CVSS
Severity: Low
CVSS 3.1 •
CVSS 2.0 •
EPSS 0.04%
Third-Party Advisory github.com Third-Party Advisory google.com Third-Party Advisory netapp.com
Affected: Kubernetes Kubernetes
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2020-8562?
CVE-2020-8562 has been scored as a low severity vulnerability.
How to fix CVE-2020-8562?
As a workaround for remediating CVE-2020-8562: If this issue affects your clusters’ control planes, you can use dnsmasq for name resolution and configure the min-cache-ttl and neg-ttl parameters to a low non-zero value to enforce cached replies for proxied connections
Is CVE-2020-8562 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2020-8562 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2020-8562?
CVE-2020-8562 affects Kubernetes Kubernetes.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.