7.5high
Flannel vulnerable to cross-node remote code execution via extension backend BackendData injection
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 2.99% (higher than 87% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-vchx-5pr6-ffx2GO-2026-4894
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| flannel-io flannel | < 0.28.2, before 0.28.2 | CVE List, NVD |
| github.com/flannel-io/flannel (Go) | before 0.28.2 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Background
The Flannel project includes an experimental Extension backend that allows users to easily prototype new backend types. This backend uses shell commands stored in Kubernetes annotations to configure network connectivity on the node.
Note: consumers are only affected by this vulnerability if they use the experimental Extension backend. Other backends such as vxlan and wireguard are unaffected.
Vulnerability
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.
Impact
Kubernetes clusters using Flannel with the Extension backend are affected by this vulnerability. Other backends such as vxlan and wireguard are unaffected.
Patches
This is fixed in version v0.28.2.
Workaround
If consumers cannot update to a patched version, then use Flannel with another backend such as vxlan or wireguard.
Credits
Flannel would like to thank Shachar Tal from Palo Alto Networks for reporting this vulnerability.
Go Vulnerability Database
Flannel has cross-node remote code execution via extension backend BackendData injection in github.com/flannel-io/flannel
NVD (es)
Flannel es un tejido de red para contenedores, diseñado para Kubernetes. El proyecto Flannel incluye un backend de Extensión experimental que permite a los usuarios prototipar fácilmente nuevos tipos de backend. En versiones de Flannel anteriores a la 0.28.2, este backend de Extensión es vulnerable a una inyección de comandos que permite a un atacante que puede establecer anotaciones de Nodo de Kubernetes lograr la ejecución arbitraria de comandos a nivel de root en cada nodo flannel del clúster. Los comandos SubnetAddCommand y SubnetRemoveCommand del backend de Extensión reciben datos controlados por el atacante a través de stdin (de la anotación de Nodo ’flannel.alpha.coreos.com/backend-data’). El contenido de esta anotación se deserializa y se canaliza directamente a un comando de shell sin comprobaciones. Los clústeres de Kubernetes que utilizan Flannel con el backend de Extensión se ven afectados por esta vulnerabilidad. Otros backends como vxlan y wireguard no se ven afectados. La vulnerabilidad se corrige en la versión v0.28.2. Como solución alternativa, utilice Flannel con otro backend como vxlan o wireguard.
References
| https://github.com/flannel-io/flannel/security/advisories/GHSA-vchx-5pr6-ffx2 | advisory, mitigation, vendor-advisory, web | |
| https://github.com/flannel-io/flannel/releases/tag/v0.28.2 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-32241 | advisory | |
| https://github.com/flannel-io/flannel/commit/08bc9a4c990ae785d2fcb448f4991b58485cd26a | fix, web | |
| https://github.com/flannel-io/flannel | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32241 changed 2026-03-31 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vchx-5pr6-ffx2 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4894 changed 2026-05-06 | CC-BY-4.0 |
| NVD | CVE-2026-32241 changed 2026-11-11 | Public domain |