# Privilege Escalation Allowed - ID: kubernetes-allow-privilege-escalation - Severity: HIGH - CWE: CWE-250 (CWE-250) - Languages: YAML - Frameworks: kubernetes ## Description Detects containers with privilege escalation explicitly enabled. ## Detection Message Container allows privilege escalation, which can enable attackers to gain additional privileges through exploits. ## Remediation Disable privilege escalation in securityContext. ```yaml securityContext: allowPrivilegeEscalation: false ``` Learn more: https://shoulder.dev/learn/kubernetes/cwe-250/privilege-escalation ## Documentation [object Object] ## Related Rules - **Container runs as root** [HIGH]: - **Docker User and File Permissions** [HIGH]: - **Dangerous Linux Capabilities Added** [CRITICAL]: - **Host Namespace Access Enabled** [CRITICAL]: - **Missing Capability Restrictions** [MEDIUM]: