{"id":"CVE-2026-62371","aliases":["EUVD-2026-84003","GHSA-5jpj-293f-rhvj","GO-2026-6557"],"status":"published","title":"KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API","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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-08","score":0.00485,"percentile":0.42066,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-78"],"published":"2026-09-21T17:02:52Z","modified":"2026-10-28T02:31:08Z","fixes":[{"ecosystem":"Go","package":"github.com/kubeedge/kubeedge","fixed_in":["1.21.2","1.22.2","1.23.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/kubeedge/kubeedge","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.12.0"},{"fixed":"1.21.2"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/kubeedge/kubeedge","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.22.0"},{"fixed":"1.22.2"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/kubeedge/kubeedge","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.23.0"},{"fixed":"1.23.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/kubeedge/kubeedge","ranges":[{"type":"SEMVER","events":[{"introduced":"1.12.0"},{"fixed":"1.21.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/kubeedge/kubeedge","ranges":[{"type":"SEMVER","events":[{"introduced":"1.22.0"},{"fixed":"1.22.2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/kubeedge/kubeedge","ranges":[{"type":"SEMVER","events":[{"introduced":"1.23.0"},{"fixed":"1.23.1"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/kubeedge/kubeedge","ranges":[{"type":"SEMVER","events":[{"introduced":"1.12.0"},{"fixed":"1.21.2"},{"introduced":"1.22.0"},{"fixed":"1.22.2"},{"introduced":"1.23.0"},{"fixed":"1.23.1"}]}]}],"products":[{"vendor":"kubeedge","product":"kubeedge"}],"references":[{"url":"https://github.com/kubeedge/kubeedge/security/advisories/GHSA-5jpj-293f-rhvj","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/kubeedge/kubeedge/pull/7028","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/kubeedge/kubeedge/pull/7029","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/kubeedge/kubeedge/pull/7030","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/kubeedge/kubeedge/commit/552af457a4c7ce80ea1678ab5889f475b36ea103","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/kubeedge/kubeedge/commit/657b745bebcdd7a221eb34c0aac13231ef12c37f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/kubeedge/kubeedge/commit/b72db7f8a0f7be23261b4349eab33024b2007df0","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.21.md","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.22.md","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.23.md","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/kubeedge/kubeedge/releases/tag/v1.21.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/kubeedge/kubeedge/releases/tag/v1.22.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/kubeedge/kubeedge/releases/tag/v1.23.1","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62371","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-5jpj-293f-rhvj"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62371.json","tags":["advisory"]},{"url":"https://github.com/kubeedge/kubeedge","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-62371","title":"KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API","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.","status":"published","published":"2026-09-21T17:02:52.268Z","modified":"2026-09-21T18:59:36.168Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:20:14.665567Z"}],"euvd":[{"id":"EUVD-2026-84003","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.","status":"published","published":"2026-09-21T17:02:52Z","modified":"2026-09-21T18:59:36Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T17:28:04.588371Z"}],"ghsa":[{"id":"GHSA-5jpj-293f-rhvj","title":"KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API","description":"## Impact\n\nThe KubeEdge NodeUpgradeJob handler constructed the `keadm upgrade edge` command by concatenating the user-controlled `spec.version` and `spec.image` fields into a shell command.\n\nAn 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.\n\nSuccessful exploitation could result in arbitrary command execution and compromise the confidentiality, integrity, and availability of the affected edge node.\n\n## Patches\n\nThe fix removes shell-based command construction and invokes `keadm` using a structured argument list through `exec.Command`.\n\nThe version and image values are passed as separate literal arguments and are no longer interpreted by a command shell.\n\nThe fixed versions:\n\n* KubeEdge v1.23.1\n* KubeEdge v1.22.2\n* KubeEdge v1.21.2\n\n## Workarounds\n\nUntil a patched version is available:\n\n* restrict permission to create or update `NodeUpgradeJob` resources to trusted administrators;\n* do not allow untrusted users or tenants to control the `spec.version` or `spec.image` fields;\n* avoid using NodeUpgradeJob-based edge upgrades in environments where these fields may be influenced by untrusted users.\n\n## Credits\n\nKubeEdge thanks Sang-Hoon Choi ([KoreaSecurity](https://github.com/KoreaSecurity), Sejong University)\nfor responsibly reporting this issue and for coordinating with the KubeEdge\nmaintainers through the security disclosure process.","status":"published","published":"2026-09-22T20:37:04Z","modified":"2026-09-22T20:37:06Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:41:20.575159Z"}],"nvd":[{"id":"CVE-2026-62371","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.","status":"published","published":"2026-09-21T17:17:37.15Z","modified":"2026-09-24T21:19:05.34Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:12:50.368368Z"}],"osv":[{"id":"CVE-2026-62371","title":"KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API","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.","status":"published","published":"2026-09-21T17:02:52.268Z","modified":"2026-10-28T02:31:08.181475557Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:45:13.306117Z"},{"id":"GHSA-5jpj-293f-rhvj","title":"KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API","description":"## Impact\n\nThe KubeEdge NodeUpgradeJob handler constructed the `keadm upgrade edge` command by concatenating the user-controlled `spec.version` and `spec.image` fields into a shell command.\n\nAn 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.\n\nSuccessful exploitation could result in arbitrary command execution and compromise the confidentiality, integrity, and availability of the affected edge node.\n\n## Patches\n\nThe fix removes shell-based command construction and invokes `keadm` using a structured argument list through `exec.Command`.\n\nThe version and image values are passed as separate literal arguments and are no longer interpreted by a command shell.\n\nThe fixed versions:\n\n* KubeEdge v1.23.1\n* KubeEdge v1.22.2\n* KubeEdge v1.21.2\n\n## Workarounds\n\nUntil a patched version is available:\n\n* restrict permission to create or update `NodeUpgradeJob` resources to trusted administrators;\n* do not allow untrusted users or tenants to control the `spec.version` or `spec.image` fields;\n* avoid using NodeUpgradeJob-based edge upgrades in environments where these fields may be influenced by untrusted users.\n\n## Credits\n\nKubeEdge thanks Sang-Hoon Choi ([KoreaSecurity](https://github.com/KoreaSecurity), Sejong University)\nfor responsibly reporting this issue and for coordinating with the KubeEdge\nmaintainers through the security disclosure process.","status":"published","published":"2026-09-22T20:37:04Z","modified":"2026-10-01T20:56:02.595070677Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:46:38.553953Z"},{"id":"GO-2026-6557","title":"KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API in github.com/kubeedge/kubeedge","description":"KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API in github.com/kubeedge/kubeedge","status":"published","published":"2026-10-01T20:23:38Z","modified":"2026-10-01T20:45:12.225060671Z","updated_at":"2026-11-02T15:47:03.11707Z"}]}}
