CVE-2026-32241 Overview
CVE-2026-32241 is a command injection vulnerability in Flannel, a network fabric solution designed for Kubernetes container environments. The vulnerability exists in the experimental Extension backend, which allows users to prototype new backend types. An attacker who can set Kubernetes Node annotations can achieve root-level arbitrary command execution on every flannel node in the cluster.
Critical Impact
This vulnerability enables root-level arbitrary command execution across all flannel nodes in a Kubernetes cluster through manipulation of Node annotations. Successful exploitation could lead to complete cluster compromise.
Affected Products
- Flannel versions prior to 0.28.2
- Kubernetes clusters using Flannel with the Extension backend
Discovery Timeline
- 2026-03-27 - CVE CVE-2026-32241 published to NVD
- 2026-03-30 - Last updated in NVD database
Technical Details for CVE-2026-32241
Vulnerability Analysis
This command injection vulnerability (CWE-77) affects the Extension backend component of Flannel. The flaw allows attackers with the ability to modify Kubernetes Node annotations to inject and execute arbitrary commands with root privileges. This is particularly dangerous in multi-tenant Kubernetes environments where node annotation permissions may be granted to various service accounts or users.
The vulnerability requires network access and some level of authentication (ability to set Node annotations in Kubernetes), but exploitation does not require user interaction and can result in complete compromise of confidentiality, integrity, and availability of affected systems.
Root Cause
The root cause lies in unsafe handling of user-controlled input in the Extension backend's SubnetAddCommand and SubnetRemoveCommand functions. These functions receive data from the flannel.alpha.coreos.com/backend-data Node annotation via stdin. The content of this annotation is unmarshalled and piped directly to a shell command without proper sanitization or validation checks.
Attack Vector
The attack vector involves an attacker with sufficient Kubernetes RBAC permissions to modify Node annotations. The attacker crafts a malicious payload in the flannel.alpha.coreos.com/backend-data annotation. When Flannel's Extension backend processes this annotation, the malicious content is passed to shell commands without sanitization, resulting in arbitrary command execution with root privileges.
The vulnerability manifests when attacker-controlled data from Node annotations is directly piped to shell commands in the SubnetAddCommand and SubnetRemoveCommand handlers. This allows shell metacharacters and command sequences to be interpreted and executed. See the GitHub Security Advisory GHSA-vchx-5pr6-ffx2 for technical details.
Detection Methods for CVE-2026-32241
Indicators of Compromise
- Unusual or suspicious content in flannel.alpha.coreos.com/backend-data Node annotations containing shell metacharacters or command sequences
- Unexpected processes spawned by flannel daemon with root privileges
- Anomalous network activity or file system modifications on flannel nodes
- Kubernetes audit logs showing modifications to Node annotations by unauthorized users or service accounts
Detection Strategies
- Monitor Kubernetes audit logs for modifications to Node objects, specifically changes to the flannel.alpha.coreos.com/backend-data annotation
- Implement SentinelOne Singularity Cloud Security to detect anomalous command execution patterns on Kubernetes nodes
- Review flannel logs for errors or unusual activity related to the Extension backend
- Use admission controllers to validate and restrict Node annotation modifications
Monitoring Recommendations
- Enable and centralize Kubernetes audit logging with focus on Node object modifications
- Deploy SentinelOne agents on all Kubernetes nodes to detect post-exploitation activities
- Implement alerting for changes to flannel-related annotations across the cluster
- Monitor for unusual shell activity or process trees originating from flannel processes
How to Mitigate CVE-2026-32241
Immediate Actions Required
- Upgrade Flannel to version 0.28.2 or later immediately
- Audit Kubernetes RBAC permissions to restrict who can modify Node annotations
- Review existing Node annotations for any suspicious content in the flannel.alpha.coreos.com/backend-data field
- Consider switching to unaffected backends (vxlan or wireguard) if immediate patching is not possible
Patch Information
The vulnerability is fixed in Flannel version v0.28.2. Organizations should upgrade to this version or later as soon as possible. The patch is available from the GitHub Flannel Release v0.28.2. Review the GitHub Security Advisory GHSA-vchx-5pr6-ffx2 for additional details on the fix.
Workarounds
- Switch to an unaffected Flannel backend such as vxlan or wireguard instead of the Extension backend
- Implement strict RBAC policies to prevent unauthorized modification of Node annotations
- Use Kubernetes admission webhooks to validate and block suspicious content in Node annotations
- Isolate network segments where flannel operates to limit the blast radius of potential exploitation
# Configuration example
# Switch to vxlan backend in flannel configuration
# Edit the flannel ConfigMap to use vxlan backend
kubectl edit configmap -n kube-flannel kube-flannel-cfg
# Ensure the backend type is set to vxlan (not extension)
# In the net-conf.json section:
# "Backend": {
# "Type": "vxlan"
# }
# Restrict Node annotation modifications via RBAC
# Create a ClusterRole that denies node annotation updates
kubectl create clusterrole restrict-node-annotations \
--verb=update,patch \
--resource=nodes
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.


