VOOZH about

URL: https://thenewstack.io/unfixable-kubernetes-security-hole-means-potential-man-in-the-middle-attacks/

⇱ Unfixable Kubernetes Security Hole Means Potential Man-in-the-Middle Attacks - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2020-12-08 10:18:36
Unfixable Kubernetes Security Hole Means Potential Man-in-the-Middle Attacks
tutorial,
Kubernetes / Security

Unfixable Kubernetes Security Hole Means Potential Man-in-the-Middle Attacks

if a hostile user can create a ClusterIP service and set the spec.externalIPs field, they can intercept traffic to that IP. 
Dec 8th, 2020 10:18am by Steven J. Vaughan-Nichols
👁 Featued image for: Unfixable Kubernetes Security Hole Means Potential Man-in-the-Middle Attacks
Feature image by Erik Mclean on Unsplash.

Well, it had to happen eventually. Every now and again — I’m looking at you Intel with your Converged Security Management Engine (CSME) snafu — a security bug shows up that can’t be fixed. Now, it’s Kubernetes‘s turn. Tim Allclair, an Apple software engineer, who also helps oversee Kubernetes security, announced a “security issue was discovered with Kubernetes affecting multitenant clusters. If a potential attacker can already create or edit services and pods, then they may be able to intercept traffic from other pods (or nodes) in the cluster.”

To be exact, if a hostile user can create a ClusterIP service and set the spec.externalIPs field, they can intercept traffic to that IP.  In addition, if a user can patch the status of a LoadBalancer service, they can also grab traffic. Now, the latter is a privileged operation and Joe and Jane User shouldn’t have that right, but, in practice, mistakes are made and it happens.

As Markus Jevring, a software developer asked on Twitter, “Is this even how Kubernetes is intended to be used? Was multitenancy in the same cluster a design-time concern?” No, no it wasn’t. But, as Allclair replied, “Certainly not. But regardless, it’s how it’s being used now, and we’re forced to adapt.”

Unfortunately, as Jerving pointed out in his follow-up, I “just feel like issues like this aren’t security issues. It’s like leaving the house key in the lock and being surprised when you get burglarized.” That’s pretty much right.

And, there’s worse news ahead. As the CVE-2020-8554: Man in the middle using LoadBalancer or ExternalIPs report states: “All Kubernetes versions are affected. Multitenant clusters that grant tenants the ability to create and update services and pods are most vulnerable.”

What’s the answer you ask for this problem. You’re not going to like this, but there’s No Patch for it. Instead, “it can currently only be mitigated by restricting access to the vulnerable features.” Why!? ” Because an in-tree fix would require a breaking change, we will open a conversation about a longer-term fix or built-in mitigation. There’s no word when a fix will be in. It won’t, it appears, be out in time for the next Kubernetes release. There’s not a word about it in the Kubernetes 1.20 changelog.

What you can do is restrict the use of external IPs with an admission webhook container: Here’s its source code and deployment instructions. This prevents services from using random external IPs. Or, you could lock external IPs by using OPA Gatekeeper, with the following sample Constraint Templatecan

Kubernetes isn’t providing a mitigation for the LoadBalancer IPs since granting users patch service/status permission was never a good idea. If, for some reason, you absolutely had to do this, the Kubernetes security team suggests that you lock down LoadBalancer IP using the same general approach for the external IP mitigations.

Since external IP services are rarely used, the Kubernetes crew recommends you manually audit your clusters’ external IP usage. Besides making sure users can’t patch service status, you should keep an eye out for user patch service status requests.

Put it all together and this has the potential to be a real security mess. But, it’s only being rated at medium severity, 6.3. That’s largely because there aren’t that many multitenancy clusters.

Still, I’d keep an eye on this one. I wouldn’t want to be the sysadmin to discover that my clusters are wide open for snooping between tenants. Would you?

TRENDING STORIES
Steven J. Vaughan-Nichols, aka sjvn, has been writing about technology and the business of technology since CP/M-80 was the cutting-edge PC operating system, 300bps was a fast internet connection, WordStar was the state-of-the-art word processor, and we liked it.
Read more from Steven J. Vaughan-Nichols
SHARE THIS STORY
TRENDING STORIES
Intel is a sponsor of The New Stack.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.