Database/Control plane, storage & DevOps
KubeEdge (NodeUpgradeJob handler, v1alpha2 API): REMOTE CODE EXECUTION ON EDGE NODES through the upgrade path. The
Impact
REMOTE CODE EXECUTION ON EDGE NODES through the upgrade path. The handler built its 'keadm upgrade edge' invocation by concatenating the user-controlled spec.version and spec.image fields into a shell command, so metacharacters in either field run as commands on the targeted node with the upgrade process's privileges. The affected range goes back to 1.12.0, far wider than the sibling ConfigUpdateJob issue. What makes this the sharper of the two operationally is the field involved: spec.image is exactly the kind of value operators parameterise in GitOps repos and let platform teams or automation set, so the injection point sits in a value that routinely flows from a less-trusted source into a cluster-wide job.
Who can reach it
Network, authenticated: RBAC permission to create or update NodeUpgradeJob resources through the v1alpha2 API, targeting an enrolled edge node.
What to do
Upgrade to KubeEdge 1.23.1, 1.22.2 or 1.21.2, which invoke keadm through exec.Command with version and image as separate literal arguments. In the interim restrict NodeUpgradeJob create/update to trusted administrators, never let untrusted users or tenants influence spec.version or spec.image, and avoid NodeUpgradeJob-based upgrades where those fields come from automation you do not fully control.
References
This entry is curated: imported from vendor advisories with machine assistance, not yet individually verified. Confirm against your vendor's advisory before acting, and report anything wrong.