CVEfocus › CVE database › CVE-2020-8554

CVE-2020-8554Kubernetes man in the middle using LoadBalancer or ExternalIPs

CVSS 6.3 MediumEPSS 8.7% (higher than 95% of CVEs)Published 2021-01-21Updated 2026-06-01Assigner: kubernetes

Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.externalIPs field, to intercept traffic to that IP address. Additionally, an attacker who is able to patch the status (which is considered a privileged operation and should not typically be granted to users) of a LoadBalancer service can set the status.loadBalancer.ingress.ip to similar effect.

CWE-283

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Go, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
2Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04kubernetesNot affected
vulnerable_code_not_present
Ubuntu 22.04kubernetesNot affected
vulnerable_code_not_present
Ubuntu 20.04kubernetesFix pending
Debian 14kubernetesFixed1.31.4+ds-1DEBIAN-CVE-2020-8554
Debian 13kubernetesFixed1.31.4+ds-1DEBIAN-CVE-2020-8554
Go libraryk8s.io/kubernetesFix pendingGHSA-j9wf-vvm6-4r9w

What the vendor says

As published in the CVE record by kubernetes, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: To restrict the use of external IPs we are providing an admission webhook container: k8s.gcr.io/multitenancy/externalip-webhook:v1.0.0. The source code and deployment instructions are published at https://github.com/kubernetes-sigs/externalip-webhook. Alternatively, external IPs can be restricted using OPA Gatekeeper. A sample ConstraintTemplate and Constraint can be found here: https://github.com/open-policy-agent/gatekeeper-library/tree/master/library/general/externalip.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.