CVE-2020-8565 Incomplete fix for CVE-2019-11250 allows for token leak in logs when logLevel >= 9

Medium 4.7 Published Updated

Attackers with log access can steal authorization tokens if Kubernetes logging is set to level 9 or higher.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-8565?

CVE-2020-8565 is a medium-severity vulnerability in Kubernetes Kubernetes, published on 7 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In Kubernetes, if the logging level is set to at least 9, authorization and bearer tokens will be written to log files. This can occur both in API server logs and client tool output like kubectl. This affects <= v1.19.3, <= v1.18.10, <= v1.17.13, < v1.20.0-alpha2.

Weakness: CWE-532

Which versions are affected by CVE-2020-8565?

11 open source packages ship an affected version, including k8s.io/kubernetes and k8s.io/client-go. It affects 1 product.

PackageAffectedFixed in
k8s.io/kubernetes GoAll versions1.20.0-alpha.2
k8s.io/kubernetes GoAll versions1.20.0-alpha.2
k8s.io/client-go GoAll versions0.17.16
k8s.io/client-go GoAll versions0.17.16
k8s.io/client-go GoAll versions0.20.0-alpha.2
k8s.io/client-go GoFrom 0.18.00.18.14
5 more packages
k8s.io/client-go GoFrom 0.18.00.18.14
k8s.io/client-go GoFrom 0.19.00.19.6
k8s.io/client-go GoFrom 0.19.00.19.6
k8s.io/client-go GoFrom 0.20.0-alpha.00.20.0-alpha.2
k8s.io/client-go GoFrom 0.20.0-alpha.00.20.0-alpha.2

Products include Kubernetes Kubernetes.

How do I fix CVE-2020-8565?

Upgrade k8s.io/kubernetes to 1.20.0-alpha.2 or later.

Is CVE-2020-8565 being exploited?

There is no known exploitation of CVE-2020-8565 in the wild and no public exploit code.

All Kubernetes Kubernetes vulnerabilities

Sources

Also known as AZL-41878, CLEANSTART-2025-JF58630, CLEANSTART-2026-AY16638, DEBIAN-CVE-2020-8565, GHSA-8cfg-vx93-jvxw, GO-2021-0064.

Is CVE-2020-8565 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free