← Lab /Systems

EndpointSlice edits let tenants hijack shared load balancer traffic in Kubernetes

Users who can modify EndpointSlice objects can redirect traffic from shared ingress or load balancer services to pods in other namespaces.

Systems Datadog Security Labs 21 May 2026 Disclosure Prototype evidence

Published as “Unpatchable Vulnerabilities of Kubernetes: CVE-2021-25740”

Why it matters

Cluster operators must restrict EndpointSlice edit rights and avoid shared load balancers to prevent cross-tenant traffic hijacking.

Summary

The authors describe CVE-2021-25740, a vulnerability where any tenant that can edit EndpointSlice objects can change the IPs those objects point to. By altering their own EndpointSlice, an attacker can cause a shared ingress or load balancer to send traffic to pods in another tenant's namespace, bypassing network policies. They provide a proof-of-concept exploit and note that the issue only applies to multi-tenant clusters using shared load balancers. Mitigations include avoiding shared ingress services and revoking edit permissions on EndpointSlice objects. Evidence is limited to a conceptual description and a PoC, without real-world deployment data.

What they found 2

  1. Modifying EndpointSlice objects can cause shared ingress/load balancers to route traffic to other tenants' pods

    “a malicious application owner can modify their own EndpointSlice objects, causing shared ingress and load balancers to redirect traffic to endpoints in other tenants' namespaces.”

  2. Revoking edit permissions on EndpointSlice objects mitigates the issue

    “Generally, EndpointSlice objects should not be directly modified by cluster users. They're managed by Kubernetes controllers, so removing privileges to those objects can be an effective mitigation for this issue.”

Caveats 4

  • The writeup does not address how an attacker obtains the victim pod IP addresses
  • The vulnerability only applies to clusters with shared load balancers or ingress services in multi-tenant environments
  • We're not addressing the question of how the attacker gets those IP addresses, as it wasn't covered in the CVE.
  • each of these vulnerabilities is only important in specific cluster architectures, so not every cluster operator needs to think about how to mitigate them.

What’s new here 4

  • Identifies CVE-2021-25740 affecting EndpointSlice objects in Kubernetes
  • Shows how modifying EndpointSlice can bypass network policies in multi-tenant clusters
  • Recommends removing edit privileges on EndpointSlice and avoiding shared load balancers as mitigations
  • Provides a proof-of-concept exploit for the vulnerability