Policy does not prevent use of root group Affecting Pod Security Policy service in Kubernetes


Severity

0.0
medium
0
10
Severity Framework
Snyk CCSS
Rule category
Containers/ Security

Is your environment affected by this misconfiguration?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
Frameworks
CIS-Controls
  • Snyk IDSNYK-CC-00638
  • creditSnyk Research Team

Description

Policy explicitly allows RunAsAny group which allows container to run in root GID context.

How to fix?

Set runAsGroup.rule to MustRunAs and set a range which does not include GID 0.