CVE-2026-32241

Flannel vulnerable to cross-node remote code execution via extension backend BackendData injection

Published Mar 27, 2026 CVSS 3.1 · 7.5 High EPSS 3.0% KEV · Not listed
Description
Flannel is a network fabric for containers, designed for Kubernetes. The Flannel project includes an experimental Extension backend that allows users to easily prototype new backend types. In versions of Flannel prior to 0.28.2, this Extension backend is vulnerable to a command injection that allows an attacker who can set Kubernetes Node annotations to achieve root-level arbitrary command execution on every flannel node in the cluster. The Extension backend's SubnetAddCommand and SubnetRemoveCommand receive attacker-controlled data via stdin (from the `flannel.alpha.coreos.com/backend-data` Node annotation). The content of this annotation is unmarshalled and piped directly to a shell command without checks. Kubernetes clusters using Flannel with the Extension backend are affected by this vulnerability. Other backends such as vxlan and wireguard are unaffected. The vulnerability is fixed in version v0.28.2. As a workaround, use Flannel with another backend such as vxlan or wireguard.

Analysis

AI-generated

Technical impact

The vulnerability is a command‑injection flaw (CWE‑77) in Flannel’s experimental Extension backend. The SubnetAddCommand and SubnetRemoveCommand read data supplied via the Kubernetes node annotation flannel.alpha.coreos.com/backend-data and pipe it directly into a shell without validation. An attacker who can set or modify this annotation can therefore inject arbitrary shell commands. The vulnerability allows an attacker to execute commands with root privileges on every node running Flannel, potentially compromising the entire cluster, as root‑level code execution compromises confidentiality, integrity and availability at a system level.

Affected Systems

Flannel, the network fabric for Kubernetes, is affected in all releases prior to v0.28.2 when the Extension backend is used. The vulnerability does not impact other supported backends such as vxlan or wireguard. A cluster that has enabled the Extension backend and allows untrusted users to modify node annotations is therefore susceptible.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity, while the EPSS score of 3% reflects a moderate but non‑negligible likelihood that the vulnerability will be actively exploited. The vulnerability is not listed in the CISA KEV catalog, but the ability to reach any node and execute commands as root makes it a high‑risk condition for any cluster where node annotations are writable without strict access controls. Exploitation requires the attacker to have write permissions to the flannel.alpha.coreos.com/backend-data annotation; once achieved, arbitrary command execution is straightforward and full control of the nodes is possible.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Flannel to version 0.28.2 or newer, where the injection is fixed.
  • If an upgrade cannot be performed immediately, switch the backend from Extension to an unaffected backend such as vxlan or wireguard.
  • Restrict the ability to write or modify the flannel.alpha.coreos.com/backend-data annotation so that only trusted administrators can set it.
  • Audit node annotations on a regular basis and monitor node activity for abnormal commands to detect potential exploitation in time.

Generated by OpenCVE AI on June 18, 2026 at 13:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vchx-5pr6-ffx2 Flannel has cross-node remote code execution via extension backend BackendData injection
History
Type Values Removed Values Added
CPEs cpe:2.3:a:flannel-io:flannel:*:*:*:*:*:kubernetes:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Flannel-io
Flannel-io flannel
Vendors & Products Flannel-io
Flannel-io flannel
Type Values Removed Values Added
Description Flannel is a network fabric for containers, designed for Kubernetes. The Flannel project includes an experimental Extension backend that allows users to easily prototype new backend types. In versions of Flannel prior to 0.28.2, this Extension backend is vulnerable to a command injection that allows an attacker who can set Kubernetes Node annotations to achieve root-level arbitrary command execution on every flannel node in the cluster. The Extension backend's SubnetAddCommand and SubnetRemoveCommand receive attacker-controlled data via stdin (from the `flannel.alpha.coreos.com/backend-data` Node annotation). The content of this annotation is unmarshalled and piped directly to a shell command without checks. Kubernetes clusters using Flannel with the Extension backend are affected by this vulnerability. Other backends such as vxlan and wireguard are unaffected. The vulnerability is fixed in version v0.28.2. As a workaround, use Flannel with another backend such as vxlan or wireguard.
Title Flannel vulnerable to cross-node remote code execution via extension backend BackendData injection
Weaknesses CWE-77
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 31, 2026, 6:54 PM
Reserved
Mar 11, 2026, 2:47 PM
Status
Analyzed
Published
Mar 27, 2026, 8:16 PM
Modified
Nov 11, 2026, 11:10 PM