# Privileged pod host namespace escape

Tenant pod specs reaching host paths, PIDs, UIDs, capabilities or devices the platform never granted

_Area: Cloud and container security. Seen in 5 disclosed reports; latest 2026-07-28. Updated 2026-11-27._

## How it works
A tenant-controlled pod spec is trusted to stay inside its sandbox, but the admission layer, merge logic or kubelet only blocks a partial list of dangerous fields. Anything not blocked — a privileged flag, a hostPath mount, `shareProcessNamespace`, an arbitrary `runAsUser`, an extra Linux capability, or a writable host bind-mount — lets the container reach the node's filesystem, processes, clock, or network namespace. The broken assumption is that "we denied the bad fields" equals "the pod is contained"; a denylist or a string check cannot cover the full space of ways to touch the host.

## Where it shows up
- Admission webhooks/policies that deny a fixed list of capabilities or fields instead of allowlisting [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md).
- Allowlisted-workload checks that match only image name and command string, not the binary actually run [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md).
- Service accounts or namespaces (e.g. kube-system) exempt from policy [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md).
- Pod specs accepting `shareProcessNamespace` or arbitrary `runAsUser` [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sapwned-sap-ai-vulnerabilities-ai-security.md).
- Privileged pod creation permitted for tenants [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sapwned-sap-ai-vulnerabilities-ai-security.md).
- CRD merge paths that pass user-supplied podSpec fields (hostNetwork, hostPID, hostIPC, privileged, serviceAccountName) through unfiltered [E5](https://bugbountylibrary.com/r/ghsa%3AGHSA-gx55-f84r-v3r7.md).
- User-controllable patch/override fields (e.g. `podSpecPatch`) that merge into the final spec with higher precedence than the admin template [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-3wf5-g532-rcrr.md).
- `/etc/hosts`, `/etc/hostname`, `/etc/resolv.conf` bind-mounted writable from host rootfs, not tmpfs [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md).

## How to review
Find the exact admission path (webhook, Gatekeeper constraint, platform authz) and ask: is this an allowlist or a denylist? For every securityContext field a tenant can set, confirm the policy enumerates the full kernel capability set and OCI defaults, not a short list [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md). Confirm no namespace or service account is exempt [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md). Confirm allowlisted workloads are verified by binary/entrypoint, not image+command strings [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md). Confirm `shareProcessNamespace` and `runAsUser` are blocked or constrained so a tenant cannot adopt the sidecar's UID [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sapwned-sap-ai-vulnerabilities-ai-security.md). For any CRD embedding a podSpec, audit the merge path for host-namespace and privileged fields and check whether the target namespace carries PSA enforce labels [E5](https://bugbountylibrary.com/r/ghsa%3AGHSA-gx55-f84r-v3r7.md). Audit every user-controllable field that merges into the final spec and its precedence [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-3wf5-g532-rcrr.md). Inside a running pod, check `mount`/`df`: any file backed by the host block device rather than tmpfs is a host write path [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md). The invariant: a tenant pod spec must not be able to name any host resource (path, PID namespace, UID, capability, device) that the platform did not explicitly grant.

## How finders spotted it
- Started from Autopilot docs inviting node-access reports, enumerated Gatekeeper constraints, saw the allowlistedworkloads CRD checked only image and command; built sa-hunter to map running pods to permissions, revealing metrics-server and stackdriver pods with deployment-update rights and kube-system SAs exempt from policy [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md).
- Hypothesized AI platforms are prone to tenant isolation bugs since running models equals running code; ran legitimate training, noticed an Istio sidecar restricting network, then tried "interesting" privileges; admission blocked root but not `shareProcessNamespace`/`runAsUser`, and Istio's UID 1337 was excluded from iptables [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sapwned-sap-ai-vulnerabilities-ai-security.md).
- Combined three code observations — merge priority in JoinWorkflowSpec, no security validation in ApplyPodSpecPatch, Strict mode only checking workflowTemplateRef presence — then built a kind-based PoC comparing baseline vs patched runs [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-3wf5-g532-rcrr.md).
- Code-reviewed a newly added PodSpec safety check, saw a hardcoded six-entry capability denylist, and reasoned which dangerous non-namespaced capabilities were missing [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md).
- Noticed `df -h` showed `/etc/hosts` mounted from host block devices, then tested writing to it [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md).

## Variants seen
- String-based workload allowlist bypass [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md).
- Namespace/service-account policy exemption [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md).
- Shared process namespace and sidecar-UID adoption defeating network isolation [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sapwned-sap-ai-vulnerabilities-ai-security.md).
- Incomplete capability denylist allowing node clock corruption [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md).
- Writable host bind-mounts enabling node disk exhaustion [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md).
- Template-restricted submission overridden by a user patch field [E3](https://bugbountylibrary.com/r/ghsa%3AGHSA-3wf5-g532-rcrr.md).
- CRD podSpec passthrough of host namespaces and privileged [E5](https://bugbountylibrary.com/r/ghsa%3AGHSA-gx55-f84r-v3r7.md).

## Impact and severity
Ranged from node disk DoS [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md) to node clock corruption affecting every workload's time-dependent controls [E4](https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md), full cluster takeover and customer secret theft [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sapwned-sap-ai-vulnerabilities-ai-security.md), shadow cluster admin [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md), and node compromise from CRD write RBAC [E5](https://bugbountylibrary.com/r/ghsa%3AGHSA-gx55-f84r-v3r7.md). Impact rose when the escape chained to internal services that trusted the network with no auth [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sapwned-sap-ai-vulnerabilities-ai-security.md), when flat overlay networking exposed other tenants [E2](https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sapwned-sap-ai-vulnerabilities-ai-security.md), and when policy exemptions hid the escalation from the webhook [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md). E1's shadow admin came via stealing neighboring pod SA tokens and abusing deployment-update rights, not the allowlist alone [E1](https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md).

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **github.com/fission/fission (go)** <= 1.24.0, fixed in 1.25.0: Fission: Incomplete capability denylist in Environment/Function PodSpec validation allows tenant-added CAP_SYS_TIME and  (CVE-2026-50570). Report: https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md. Fix: https://github.com/fission/fission/commit/2569b42bfadbcb7d78b55a00a60f77937e522699
- **github.com/fission/fission (go)** <= 1.23.0, fixed in 1.24.0: Fission Environment CRD podspec passthrough enables hostPID/hostNetwork/privileged pods, node escape (CVE-2026-50564). Report: https://bugbountylibrary.com/r/ghsa%3AGHSA-gx55-f84r-v3r7.md. Fix: https://github.com/fission/fission/commit/e484df8460bb4e8026e24210120602aa7f181f64
- **github.com/argoproj/argo-workflows/v4 (go)** < 4.0.2, fixed in 4.0.2: Argo Workflows: WorkflowTemplate Security Bypass via podSpecPatch in Strict/Secure Reference Mode (CVE-2026-31892). Report: https://bugbountylibrary.com/r/ghsa%3AGHSA-3wf5-g532-rcrr.md
- **Google Kubernetes Engine** (Autopilot) (version not stated): Container Escape to Shadow Admin: GKE Autopilot Vulnerabilities. Report: https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Aunit42-paloaltonetworks-com-gke-autopilot-vulnerabilities.md
- E2: https://bugbountylibrary.com/r/blog%3Awiz-io-blog-sapwned-sap-ai-vulnerabilities-ai-security.md
- E3: https://bugbountylibrary.com/r/ghsa%3AGHSA-3wf5-g532-rcrr.md
- E4: https://bugbountylibrary.com/r/ghsa%3AGHSA-qf5v-m7p4-95rp.md
- E5: https://bugbountylibrary.com/r/ghsa%3AGHSA-gx55-f84r-v3r7.md
