Container is running with Docker socket mount Affecting Deployment service in Kubernetes


Severity

0.0
high
0
10
    Severity Framework
    Snyk CCSS
    Rule category
    Containers / Volumes

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-00606
  • credit Snyk Research Team

Description

When a container has access to the docker socket mount, it can control the docker daemon which might lead to privilege escalation.

How to fix?

Remove /var/run/docker.sock hostPath volume.

Terraform