github.com/kubeedge/kubeedge
Affected
- introduced
1.12.0, fixed1.21.2(semver)
Fixed versions
1.21.2
Fix
- Fixed version
1.21.2go get github.com/kubeedge/[email protected]
Advisory
Also known as: CVE-2026-62371, GO-2026-6557
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. 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:
Workarounds
Until a patched version is available:
NodeUpgradeJob resources to trusted administrators;spec.version or spec.image fields;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.
High Basis: The source's own band: HIGH
1.12.0, fixed 1.21.2 (semver)1.21.2
1.21.2go get github.com/kubeedge/[email protected]1.22.0, fixed 1.22.2 (semver)1.22.2
1.22.2go get github.com/kubeedge/[email protected]1.23.0, fixed 1.23.1 (semver)1.23.1
1.23.1go get github.com/kubeedge/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0