CVE-2026-62371: KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API
Impact The KubeEdge NodeUpgradeJob handler constructed the keadm upgrade edge command by concatenating the user-controlled spec.version and spec.image fields into a shell command. An authenticated user with permission to create or update NodeUpgradeJob resources through the v1alpha2 API could include shell metacharacters in either field.
Published Sep 22, 2026
Affected packages
github.com/kubeedge/kubeedge
- Ecosystem
- Go
- Affected
- >= 1.12.0, < 1.21.2
- Fixed in
- 1.21.2
- Check
go list -m github.com/kubeedge/kubeedge
github.com/kubeedge/kubeedge
- Ecosystem
- Go
- Affected
- >= 1.22.0, < 1.22.2
- Fixed in
- 1.22.2
- Check
go list -m github.com/kubeedge/kubeedge
github.com/kubeedge/kubeedge
- Ecosystem
- Go
- Affected
- >= 1.23.0, < 1.23.1
- Fixed in
- 1.23.1
- Check
go list -m github.com/kubeedge/kubeedge
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
The KubeEdge NodeUpgradeJob handler constructed the keadm upgrade edge command by concatenating the user-controlled spec.version and spec.image fields into a shell command.
An authenticated user with permission to create or update NodeUpgradeJob resources through the v1alpha2 API could include shell metacharacters in either field. When the upgrade job was processed, the injected command could be executed on the targeted edge node with the privileges available to the upgrade process.
Successful exploitation could result in arbitrary command execution and compromise the confidentiality, integrity, and availability of the affected edge node.
Patches
The fix removes shell-based command construction and invokes keadm using a structured argument list through exec.Command.
The version and image values are passed as separate literal arguments and are no longer interpreted by a command shell.
The fixed versions:
- KubeEdge v1.23.1
- KubeEdge v1.22.2
- KubeEdge v1.21.2
Workarounds
Until a patched version is available:
- restrict permission to create or update
NodeUpgradeJobresources to trusted administrators; - do not allow untrusted users or tenants to control the
spec.versionorspec.imagefields; - avoid using NodeUpgradeJob-based edge upgrades in environments where these fields may be influenced by untrusted users.
Credits
KubeEdge thanks Sang-Hoon Choi (KoreaSecurity, Sejong University) for responsibly reporting this issue and for coordinating with the KubeEdge maintainers through the security disclosure process.
Credited to DoisLONG, liyuerich, kevin-wangzefeng.
References
- https://github.com/kubeedge/kubeedge/security/advisories/GHSA-5jpj-293f-rhvj
- https://nvd.nist.gov/vuln/detail/CVE-2026-62371
- 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
- https://github.com/advisories/GHSA-5jpj-293f-rhvj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-62182
KubeEdge: ConfigUpdateJob updateFields enables remote shell injection and code execution on edge nodes
high8.8Sep 22, 2026CVE-2026-62369
KubeEdge: keadm DecompressTarGz path traversal enables arbitrary file write on Windows during edge node join
high8.1Sep 22, 2026CVE-2026-62370
KubeEdge: Unbounded allocation in viaduct packer enables authenticated remote DoS against CloudHub
medium6.5Sep 22, 2026
