Container is running with host device path mount Affecting Container service in Kubernetes


0.0
medium
    Severity Framework Snyk CCSS
    Rule category Containers / Best Practices

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

Description

Access to a Docker host device from the container can lead to container escape attacks and privilege escalation on the host.

How to fix?

Remove hostPath volume mount.

Terraform

References