Toutes les vulnérabilités
CRITICALInfra

CVE-2018-1002105

Kubernetes · Kubernetes kube-apiserver

Résumé

Incorrect handling of error responses to proxied upgrade requests in kube-apiserver lets a specially crafted request establish a connection to a backend server and then send arbitrary requests over that same connection directly to the backend, authenticated with the API server's own TLS credentials. This enables privilege escalation, including from an unauthenticated user via aggregated API servers and from a low-privileged user to cluster-admin-level access on backend kubelets. Impact spans all secrets, pods, environment variables, and running containers on affected nodes. It was the first major critical CVE in Kubernetes.

Comment l’éviter dans votre code

  • Patch Kubernetes to a fixed release (1.10.11, 1.11.5, 1.12.3, 1.13.0+).
  • Disable anonymous authentication to the API server and tighten aggregated-API and pod exec/attach RBAC.
  • Remove unnecessary API aggregation and restrict who can reach the kube-apiserver.
  • Apply least-privilege RBAC so a low-privileged user cannot escalate via proxied upgrade requests.
  • Enable and monitor API server audit logs for anomalous proxy/upgrade or exec activity.

Références

Vulnérabilités liées

Tout Infra →