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.
Published: 2026-03-27
Score: 7.5 High
EPSS: 2.7% Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Wed, 08 Apr 2026 15:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:flannel-io:flannel:*:*:*:*:*:kubernetes:*:*

Tue, 31 Mar 2026 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 30 Mar 2026 07:15:00 +0000

Type Values Removed Values Added
First Time appeared Flannel-io
Flannel-io flannel
Vendors & Products Flannel-io
Flannel-io flannel

Fri, 27 Mar 2026 19:45:00 +0000

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'}


Subscriptions

Flannel-io Flannel
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-03-31T18:54:30.192Z

Reserved: 2026-03-11T14:47:05.684Z

Link: CVE-2026-32241

cve-icon Vulnrichment

Updated: 2026-03-31T18:51:19.570Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-27T20:16:30.570

Modified: 2026-06-17T10:35:24.630

Link: CVE-2026-32241

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-18T13:30:05Z

Weaknesses
  • CWE-77

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