---
id: "CVE-2026-62371"
kind: "vulnerability"
aliases: ["CVE-2026-62371", "GHSA-5jpj-293f-rhvj", "GO-2026-6557"]
title: "KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API in github.com/kubeedge/kubeedge"
severity: "high"
cvss: 8.8
epss: 0.00485
exploited: false
status: "open"
category: "package"
products: [{"name": "github.com/kubeedge/kubeedge", "fixed": ["1.21.2", "1.22.2", "1.23.1"], "affected": ">= 1.23.0, < 1.23.1", "ecosystem": "go"}]
ecosystems: ["go"]
tags: ["edge-computing", "go", "kubeedge", "kubernetes", "package"]
not_affected_if: ["no-nodeupgradejob-permissions-granted", "patched-version"]
published_at: "2026-09-21T17:17:37+00:00"
first_seen_at: "2026-10-23T19:13:08+00:00"
updated_at: "2026-10-23T21:43:57+00:00"
sources: [{"source": "govuln", "url": "https://pkg.go.dev/vuln/GO-2026-6557", "first_seen_at": "2026-10-23T19:13:08+00:00"}, {"source": "epss", "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-62371", "first_seen_at": "2026-10-23T19:13:43+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-62371", "first_seen_at": "2026-10-23T19:35:23+00:00"}]
---

# KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API in github.com/kubeedge/kubeedge

KubeEdge's v1alpha2 NodeUpgradeJob handler concatenates the spec.version and spec.image fields into a keadm upgrade shell command without sanitizing them. A user who can create or update NodeUpgradeJob resources can inject shell metacharacters and run arbitrary commands on targeted edge nodes with the upgrade process's privileges.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- go:github.com/kubeedge/kubeedge affected >= 1.23.0, < 1.23.1 fixed 1.21.2, 1.22.2, 1.23.1

## How to check

Check the KubeEdge version on the cloud side with kubectl get deployment -n kubeedge or the cloudcore image tag; affected if >= 1.12.0 and below 1.21.2, 1.22.2, or 1.23.1 (sources say affected range 1.23.0 to 1.23.1 for the Go module, but description says from 1.12.0).
List NodeUpgradeJob objects with kubectl get nodeupgradejobs -A and review spec.version and spec.image for shell metacharacters.

## Fix

Upgrade KubeEdge to 1.21.2, 1.22.2, or 1.23.1 matching your release line.
Restrict who can create or update NodeUpgradeJob resources via RBAC until patched.

## Timeline

- 2026-10-23T19:13:08+00:00 govuln https://pkg.go.dev/vuln/GO-2026-6557
- 2026-10-23T19:13:43+00:00 epss https://api.first.org/data/v1/epss?cve=CVE-2026-62371
- 2026-10-23T19:35:23+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-62371

## From the sources

KubeEdge is an open source system for extending native containerized application orchestration capabilities to hosts at Edge. From 1.12.0 until 1.21.2, 1.22.2, and 1.23.1, the v1alpha2 NodeUpgradeJob handler in edge/pkg/taskmanager/actions/nodeupgradejob.go concatenates authenticated user-controlled spec.version and spec.image values into the keadm upgrade edge shell command. A user with permission to create or update NodeUpgradeJob resources can supply shell metacharacters in either field, causing arbitrary commands to execute on targeted edge nodes with the privileges of the upgrade process and compromising node confidentiality, integrity, and availability. This issue is fixed in versions 1.21.2, 1.22.2, and 1.23.1.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
