See how tigera compares to other vendors in security performance
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every Linux node by default, and the kubelet runs this driver as root on the host whenever a pod mounts a volume that uses it. The driver read the pod UID, pod name, namespace and service account from the volume options supplied with the mount request, and used the pod UID as a component of host filesystem paths without validating it. Kubernetes reserves those option keys for the kubelet, but the driver matched option keys by case-folding, so a pod creator could supply the values through an alternate spelling of a reserved key that the Kubernetes API server does not recognize as reserved. A user who can create pods in a namespace that does not enforce the Pod Security Standards restricted profile could therefore set a pod UID containing path traversal sequences and cause the driver to bind-mount a host directory of their choice, including the node's root filesystem, read-write into their pod. This allows escape from the container to root on the node. If the pod is scheduled on a control-plane node, the attacker can also read the cluster administrator credentials and the cluster CA private key, leading to full cluster compromise. The same weakness lets the pod cause a root-owned file to be written outside the driver's own directories, and choose the pod name, namespace and service account that the driver records as the workload's identity.
Calico's Application Layer Policy (disabled by default), which enforces HTTP rules through Dikastes, fails to perform URL path normalization. As a result, HTTP requests using path-traversal segments, encoded slashes, or repeated slashes are not correctly evaluated by Prefix path rules. Dikastes authorizes the request under the permitted prefix while the downstream workload or a fronting proxy normalizes the path and serves the restricted endpoint. An attacker with network access and no special RBAC can potentially reach HTTP endpoints the policy was intended to restrict.
In certain conditions for Calico Typha (v3.26.2, v3.25.1 and below), and Calico Enterprise Typha (v3.17.1, v3.16.3, v3.15.3 and below), a client TLS handshake can block the Calico Typha server indefinitely, resulting in denial of service. The TLS Handshake() call is performed inside the main server handle for loop without any timeout allowing an unclean TLS handshake to block the main loop indefinitely while other connections will be idle waiting for that handshake to finish.
In Calico deployments that use the Kubernetes API datastore and Calico IPAM, the Calico CNI plugin released a pod's previously recorded IP addresses before assigning addresses requested through the cni.projectcalico.org/ipAddrs annotation. Before a pod has been assigned an IP, those previously recorded addresses are derived from pod annotations, such as cni.projectcalico.org/podIP, which are controlled by whoever creates the pod. The release was performed by address alone, without checking that the address belonged to the pod. A user with privileges to create pods in any namespace could therefore cause Calico IPAM to release IP addresses belonging to workloads in other namespaces and on other nodes. A released address could then be assigned to another pod, including the attacker's own pod in the same request, resulting in duplicate IP addresses, loss of connectivity for the affected workload, and interception or impersonation of traffic destined for it.
Calico's apiserver wraps tier-scoped resources so that every operation runs through AuthorizeTierOperation, but the Delete override on NetworkPolicy, GlobalNetworkPolicy, and their staged variants is not invoked for DeleteCollection requests. A user holding the deletecollection verb or wildcard verbs on tier-scoped policy resources can bulk-delete policies in tiers they otherwise have no rights on, breaking the tier authorization boundary.
When Calico is configured with the Azure IPAM plugin, the Calico CNI binary mutates the incoming CNI configuration to attach subnet information before delegating to the IPAM plugin. After mutating, the Azure IPAM helper logs the entire unmarshaled configuration map (stdinData) at INFO level to /var/log/calico/cni/cni.log on every CNI ADD and DEL invocation — once per pod scheduled or terminated on the node. When the cluster is deployed using token-based Kubernetes authentication, this log entry contains the ServiceAccount token, client key, and certificate authority in plaintext. Any principal with read access to /var/log/calico/cni/cni.log on a node can read these logs and extract the credentials, which grant cluster-wide Calico networking admin privileges.
In Calico, the install-cni init container logs the rendered CNI configuration to standard output. When the configuration template uses the SERVICEACCOUNTTOKEN placeholder (Canal/Flannel-Calico deployments), the installer substitutes the live Kubernetes ServiceAccount bearer token before logging, exposing the token to any authenticated user with pods/log permission in the namespace with calico-node. The token holds patch privileges on pods/status, enabling annotation-based attacks against cluster workloads. The default kubeconfig-based authentication path is not affected. This is a direct regression of TTA-2018-001.
When Calico's shared debug server is enabled (disabled by default), the Calico kube-controllers and Goldmane components bind their Go pprof debug listener to 0.0.0.0 without authentication. Any pod with network reachability to the listener can retrieve the process heap, goroutine stacks (including function arguments), and command-line arguments. Depending on the process's in-memory state, the heap may contain sensitive material. The debug listener is opt-in but is unsafe when enabled because it offers no authentication and no safe localhost-only binding option.
Calico's Dikastes application layer policy (ALP) server writes sensitive HTTP request data to its log at Debug level. When Dikastes is started with the --debug flag, every HTTP request evaluated through Envoy's extauthz filter causes the request headers to be written verbatim to the container's standard output. This includes Authorization, Cookie and custom authentication headers such as X-Api-Key, and the full request path including the query string. If Envoy is configured to forward request bodies to the authorization server, the request body (up to the configured size limit) is logged as well. These logs can be read by any principal with access to pods/log in the namespace, from the node's container log files, and through any downstream log-collection pipeline. An attacker with read access to those log sinks can harvest live application credentials without further interaction with the workload. Dikastes is not deployed by a default Calico installation and does not log at Debug level by default. It is strongly advised to avoid running with --debug flag in production.
Clusters using Calico (version 3.22.1 and below), Calico Enterprise (version 3.12.0 and below), may be vulnerable to route hijacking with the floating IP feature. Due to insufficient validation, a privileged attacker may be able to set a floating IP annotation to a pod even if the feature is not enabled. This may allow the attacker to intercept and reroute traffic to their compromised pod.