WORKDIR should not be mounted on system dirs
ID |
sys_workdir_mounts |
Severity |
critical |
Family |
Container Security |
Tags |
container-escape, dockerfile, security, supply-chain |
Security
The "leaky vessels" family of vulnerabilities, CVE-2024-21626 and others, essentially tries to escape container isolation using WORKDIR instruction handling.
Reference: OpenSSF post about Leaky Vessels vulnerabilities.