79% vs 51%: independent neobanks lag on app security. Read the report

Deep Dive

Deep Dive

Calico FlexVolume Pod Escape to Node Root (CVE-2026-129109)

A path traversal in Calico's FlexVolume driver lets a pod creator mount the node root read-write and escape to root; fixed in 3.32.4 and 3.33.1.

TL;DR

  • A path traversal in Calico's FlexVolume driver lets a user who can create a pod bind-mount a host directory, including the node root, read-write into that pod. CVE-2026-129109 carries CVSS v4.0 9.4 Critical from the Tigera CNA.
  • Calico Open Source 3.32.0 to 3.32.3 and 3.33.0 are affected when the Tigera Operator manages the installation. Calico Enterprise and Calico Cloud have separate affected and fixed releases in the table.
  • No public proof of concept and no in-the-wild exploitation are reported. The CVE is not in the CISA Known Exploited Vulnerabilities catalog, which was at version 2026.12.03 on 2026-12-04.
  • Upgrade to Calico 3.32.4 or 3.33.1, or the matching Enterprise or Cloud release. "How do I fix it?" gives the upgrade checks and the manual driver removal for nodes where FlexVolume was disabled.

Am I affected?

You are affected if a Tigera Operator-managed Calico installation runs an affected release. A user must also be able to create pods in a namespace that does not enforce the Pod Security Standards restricted profile. All of these must hold:

  • Calico is installed and managed by the Tigera Operator. The operator installs the nodeagent~uds FlexVolume driver on every Linux node by default.
  • The Calico release is in an affected range. Calico Open Source 3.32.0 to 3.32.3 and 3.33.0 are affected. The CVE record also lists every earlier release as affected, but it lists no fixed release for those branches.
  • The driver is present on the node. A node built by an older release can still carry the driver after flexVolumePath is set to None.
  • The user can create a pod in a namespace that does not enforce the restricted Pod Security Standards profile. The restricted profile does not allow FlexVolume volumes, so it blocks this path.

The driver is part of Calico's node agent. The kubelet runs it as root on the host when a pod mounts a volume that uses the nodeagent/uds driver. The driver reads the pod UID, pod name, namespace and service account from the volume options, then uses the UID in host filesystem paths.

Product Affected versions Fixed version
Calico Open Source 3.32.0 to 3.32.3 3.32.4
Calico Open Source 3.33.0 3.33.1
Calico Open Source 3.31 and earlier no fixed release listed; move to 3.32.4 or later
Calico Enterprise before 3.22.9 3.22.9
Calico Enterprise 3.23.0-0 to 3.23.3 3.23.4
Calico Cloud before 24.1.2 24.1.2

The CVE record rates the flaw CVSS v4.0 9.4 Critical, CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H.

Check the Calico version the operator reports and the image the nodes run:

kubectl get installation default -o jsonpath='{.status.version}{"\n"}'
kubectl get daemonset calico-node -n calico-system -o jsonpath='{.spec.template.spec.containers[0].image}{"\n"}'

Check the FlexVolume driver on a node. The default path depends on the provider, and the operator stores it in the Installation resource:

kubectl get installation default -o jsonpath='{.spec.flexVolumePath}{"\n"}'
sudo ls -l /usr/libexec/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds/uds

On OpenShift, GKE, AKS and RKE2 the operator uses a different default path. Use the value printed by the first command when it is set. A missing driver means the node is not exposed through this code path, but the version should still be upgraded.

How do I fix it?

Upgrade the operator and every node to Calico 3.32.4, 3.33.1 or the matching Enterprise or Cloud release, then confirm the driver image on each node. The fix is in the driver, so replacing only the operator is not enough.

  1. Read the Tigera upgrade guide for the release you are moving to and follow its order for the operator and the node daemonset.
  2. Apply the fixed operator manifest for your release, then let the operator roll the calico-node daemonset.
  3. Wait until every node runs the fixed image. kubectl get pods -n calico-system -l k8s-app=calico-node shows the rollout.
  4. Check that no node still runs the old pod2daemon-flexvol image.
  5. On Calico Enterprise and Calico Cloud, install the fixed release through the vendor's upgrade path. The open source manifest does not apply.
kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/projectcalico/calico/v3.32.4/manifests/tigera-operator.yaml

This command updates the operator manifest to 3.32.4, adapted from the Calico release page. If the Installation resource pins an image tag, set it to the same release before the rollout.

If you cannot upgrade yet, remove the attack surface from namespaces that do not need the driver:

  1. Apply the restricted Pod Security Standards profile to every namespace that should not mount FlexVolume volumes.
  2. Set flexVolumePath: None in the Installation resource if no workload needs the driver.
  3. Drain the pods that mount nodeagent/uds, then delete the installed driver from every node with sudo rm -rf <flexVolumePath>/nodeagent~uds.
  4. Restrict pod creation in namespaces that cannot enforce the restricted profile.

The workaround removes the FlexVolume mount from workloads that use it, and it does not repair an old driver left on a node. The operator in the fixed releases updates a driver that is already installed even when flexVolumePath is None; a node that never received that update still needs the manual removal.

What is the root cause?

The driver trusts the pod UID in the volume options and uses it as a path component. It does not check that the value is a UID or that the resulting path stays inside the driver's own directory. Kubernetes reserves the option keys for the kubelet, but the driver matches them by case-folding.

The vulnerable code is pod2daemon/flexvol/flexvoldriver.go at 3.32.3. The driver decodes the options into a struct:

type FlexVolumeInputs struct {
    Uid            string `json:"kubernetes.io/pod.uid"`
    Name           string `json:"kubernetes.io/pod.name"`
    Namespace      string `json:"kubernetes.io/pod.namespace"`
    ServiceAccount string `json:"kubernetes.io/serviceAccount.name"`
}

checkValidMountOpts() unmarshals the option string and returns ninputs.Uid as the workload path:

func checkValidMountOpts(opts string) (*creds.Credentials, string, bool) {
    ninputs := FlexVolumeInputs{}
    err := json.Unmarshal([]byte(opts), &ninputs)
    if err != nil {
        return nil, "", false
    }

    return &creds.Credentials{
        UID:            ninputs.Uid,
        Workload:       ninputs.Name,
        Namespace:      ninputs.Namespace,
        ServiceAccount: ninputs.ServiceAccount,
    }, ninputs.Uid, true
}

doMount() then concatenates that value onto the driver's workload directory, creates the directory with mode 0777, and bind-mounts it into the pod:

newDir := configuration.NodeAgentWorkloadHomeDir + "/" + workloadPath
err := os.MkdirAll(newDir, 0777)
...
cmd := exec.Command("/bin/mount", "--bind", newDir, newDestinationDir)

Go's encoding/json matches a struct tag without regard to case. The Kubernetes API server reserves the exact key kubernetes.io/pod.uid, so a pod creator can send an alternate spelling such as Kubernetes.IO/Pod.UID. The API server does not treat that spelling as reserved, while the driver's decoder does. The value that reaches workloadPath is therefore chosen by the pod creator.

filepath cleaning in os.MkdirAll resolves .. segments. A UID such as ../../../../etc therefore makes newDir point outside /var/run/nodeagent/mount and creates a directory at the target path with mode 0777. The bind mount then exposes that path at /nodeagent inside the pod.

How is it exploited?

A pod creator turns the path traversal into a host mount in six steps. The driver does the privileged work: the kubelet starts it as root, and the mount is created on the host.

  1. The attacker creates a pod in a namespace that does not enforce the restricted Pod Security Standards profile.
  2. The pod declares a FlexVolume with the nodeagent/uds driver and an option key that is an alternate-case spelling of kubernetes.io/pod.uid.
  3. The API server accepts the alternate-case key because it reserves only the exact spelling.
  4. The kubelet passes the merged options to the driver, and the driver's JSON decoder matches the alternate-case key to the Uid field.
  5. The attacker's value, which contains .. segments, becomes workloadPath. doMount() resolves it and bind-mounts the target host directory into the pod.
  6. With / as the target, the pod reads and writes the node filesystem as root.

The CVE record and the GitHub advisory publish no proof of concept, so this post does not include a pod manifest or a complete option string. The CVE record describes the mechanism and the review of the fix commit confirms the path.

The attack needs the target directory to exist or to be creatable. A path such as / already exists. The driver calls os.MkdirAll before the bind mount, so a missing directory is created with mode 0777 first.

How does the attack flow?

An alternate-case option key lets a pod creator replace the UID that the driver uses as a host path. The driver then bind-mounts the chosen path into the pod as root.

flowchart LR A["Pod creator sends an alternate-case pod UID"] --> B["API server does not see a reserved key"] B --> C["kubelet passes the options to the driver"] C --> D["driver reads the UID as a path component"] D --> E["no path check before MkdirAll"] E --> F["bind mount of the host path into the pod"] F --> G["root on the node and cluster credentials on a control-plane node"]

What can an attacker do?

An attacker who can create a pod in an unprotected namespace can read and write the node filesystem as root. The same access can take over the cluster when the pod lands on a control-plane node. The CVE record lists both outcomes.

The impact needs all of these conditions:

  • The cluster runs an affected Calico release managed by the Tigera Operator, and the FlexVolume driver is installed on the target node.
  • The attacker can create a pod in a namespace that does not enforce the restricted Pod Security Standards profile.
  • The attacker can choose the FlexVolume options for that pod.
  • The pod is scheduled on a node the attacker wants to reach. A control-plane node adds the cluster administrator credentials and the cluster CA private key to the impact.

The CVE record says a pod on a control-plane node can read the cluster administrator credentials and the cluster CA private key. Those credentials allow full cluster compromise.

A pod on a worker node reaches root on that node. It can also write root-owned files outside the driver's directories. The driver records the pod name, namespace and service account that the attacker supplies, so the stored workload identity can be spoofed.

Why does the fix work?

The fix stops trusting the option value for the path. It derives the UID from the mount directory the kubelet created, requires the option to match that UID, and confines every path the driver builds to its own base directory.

The fixed checkValidMountOpts() takes the volume directory and reads the UID from its pods/<uid>/volumes/nodeagent~uds/<volume> shape:

uid, err := podUIDFromDir(dir)
if err != nil || inputs[optPodUID] != uid {
    return nil, "", false
}

podUIDFromDir() accepts only a canonical UUID or a 32-character hexadecimal UID:

var (
    podUIDUUIDRegexp = regexp.MustCompile(`^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`)
    podUIDHashRegexp = regexp.MustCompile(`^[0-9a-f]{32}$`)
)

pathUnder() rejects an element that is empty, ., .. or contains a slash, and it checks that the joined path still resolves to that element under the base directory:

func pathUnder(base, elem string) (string, error) {
    if elem == "" || elem == "." || elem == ".." || strings.ContainsRune(elem, '/') {
        return "", fmt.Errorf("invalid path element %q", elem)
    }
    p := filepath.Join(base, elem)
    if rel, err := filepath.Rel(base, p); err != nil || rel != elem {
        return "", fmt.Errorf("path %q escapes %q", p, base)
    }
    return p, nil
}

doMount(), unmount(), addCredentialFile() and removeCredentialFile() all use pathUnder(). The operator change keeps an installed driver updated when flexVolumePath is None, so a node cannot keep an old driver just because the setting was disabled. The patch closes the path-building flaw in this driver. It does not change how the API server reserves option keys, which is why the driver no longer uses the option value as a path.

How do I check if I was compromised?

No indicators of compromise are published for CVE-2026-129109. A successful mount looks like a normal pod start, so check the pod specs and the mounts rather than a signature.

List pods that use the nodeagent/uds FlexVolume driver:

kubectl get pods -A -o json | jq -r '.items[] | select(any(.spec.volumes[]?; .flexVolume.driver=="nodeagent/uds")) | "\(.metadata.namespace)/\(.metadata.name)"'

List the option keys those pods set. Any spelling other than the exact reserved keys is a lead:

kubectl get pods -A -o json | jq -r '.items[].spec.volumes[]? | select(.flexVolume) | .flexVolume.options // {} | keys[]' | sort -u

On each node, inspect the bind mounts the driver created and the directories under its workload home:

mount | grep 'nodeagent~uds'
sudo ls -la /var/run/nodeagent/mount

A mount whose source is /, /etc, /var/lib/kubelet or another host path outside /var/run/nodeagent/mount is a strong lead. A directory name under /var/run/nodeagent/mount that is not a pod UID is also suspicious.

Check the Kubernetes audit log for pod creation with a FlexVolume whose options contain a UID-like key in a non-canonical case. Also look for pods that mount nodeagent/uds in namespaces that normally do not. An attempt that fails at the API server or the driver may leave no trace.

Timeline

  • 2026-11-05: The fix pull requests were merged: 14506 on master, and 14507, 14508 and 14509 on the release branches.
  • 2026-11-11: Calico 3.32.4 was released.
  • 2026-11-16: Calico 3.33.1 was released.
  • 2026-12-04: The GitHub advisory GHSA-pr25-2m58-c8mp and the CVE record were published.

The fix merged 29 days before the CVE record. Calico 3.32.4 shipped 23 days before the record, and 3.33.1 shipped 18 days before it.

The Calico fix merged 29 days before the CVE record
Figure 1: The fix merge, the two fixed releases and the CVE record. Source: Calico pull requests 14506 to 14509, releases 3.32.4 and 3.33.1, and the CVE record, checked December 4, 2026

FAQ

Does this need cluster administrator access?

No. The CVE record gives the attack low privileges. A user who can create a pod in a namespace that does not enforce the restricted Pod Security Standards profile can reach the driver. Namespaces that enforce the restricted profile do not allow FlexVolume volumes, so they block this path.

Is every Calico installation affected?

No. The CVE record describes installations managed by the Tigera Operator, which installs this driver by default on Linux nodes. A cluster without the driver on its nodes is not exposed through this path. The version should still be upgraded because the operator manages the driver on nodes that have it.

I set flexVolumePath to None. Am I safe?

Not necessarily. A driver installed by an earlier release can remain on a node after the setting changes. The fixed operator updates a driver it finds even when the setting is None. A node that never received that update needs the manual removal in "How do I fix it?".

Is there a public proof of concept?

No. The CVE record and the GitHub advisory describe the mechanism, and the fix pull requests are public, but no exploit code, pod manifest or end-to-end demonstration is published.

Is CVE-2026-129109 exploited in the wild?

No. No exploitation is reported, and the CISA Known Exploited Vulnerabilities catalog at version 2026.12.03 does not list the CVE. The CVE record has no CISA SSVC assessment, so the exploitation status comes from the absence of a report, not from a formal assessment.

Does upgrading the operator fix every node?

No. The vulnerability is in the node driver. Upgrade the operator and the calico-node daemonset, then confirm each node runs the fixed driver image. A node that still has the old pod2daemon-flexvol image remains exposed.

References

  • Tigera, "Calico installations managed by the Tigera Operator install a FlexVolume driver...", CVE-2026-129109, CVE record published 2026-12-04 (checked December 4, 2026): https://www.cve.org/CVERecord?id=CVE-2026-129109
  • GitHub Advisory Database, "Calico installations managed by the Tigera Operator install a FlexVolume driver...", GHSA-pr25-2m58-c8mp, published 2026-12-04 (checked December 4, 2026): https://github.com/advisories/GHSA-pr25-2m58-c8mp
  • Calico, pull request 14506, "Improve flexvolume driver option validation", merged 2026-11-05 (checked December 4, 2026): https://github.com/projectcalico/calico/pull/14506
  • Calico, pull request 14507, backport to release-v3.33, merged 2026-11-05 (checked December 4, 2026): https://github.com/projectcalico/calico/pull/14507
  • Calico, pull request 14508, backport to release-v3.32, merged 2026-11-05 (checked December 4, 2026): https://github.com/projectcalico/calico/pull/14508
  • Calico, pull request 14509, backport to release-v3.31, merged 2026-11-05 (checked December 4, 2026): https://github.com/projectcalico/calico/pull/14509
  • Calico, release 3.32.4, published 2026-11-11 (checked December 4, 2026): https://github.com/projectcalico/calico/releases/tag/v3.32.4
  • Calico, release 3.33.1, published 2026-11-16 (checked December 4, 2026): https://github.com/projectcalico/calico/releases/tag/v3.33.1
  • Calico, pod2daemon/flexvol/flexvoldriver.go at 3.32.3, the vulnerable source (checked December 4, 2026): https://github.com/projectcalico/calico/blob/v3.32.3/pod2daemon/flexvol/flexvoldriver.go
  • Calico, pod2daemon/flexvol/flexvoldriver.go at 3.32.4, the fixed source (checked December 4, 2026): https://github.com/projectcalico/calico/blob/v3.32.4/pod2daemon/flexvol/flexvoldriver.go
  • Docker Hub, calico/node image with 1,733,117,253 pulls (checked December 4, 2026): https://hub.docker.com/r/calico/node
  • CISA, Known Exploited Vulnerabilities catalog, version 2026.12.03 (checked December 4, 2026): https://www.cisa.gov/known-exploited-vulnerabilities-catalog
  • Kubernetes, Pod Security Standards (checked December 4, 2026): https://kubernetes.io/docs/concepts/security/pod-security-standards/

Free scan

Scan your own app for free

or book a demo

Keep reading

Related articles

Browse the blog