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


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

Is your enviroment 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 ID SNYK-CC-00638
  • credit Snyk 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.

References