{"id":"CVE-2026-62371","kind":"vulnerability","aliases":["CVE-2026-62371","GHSA-5jpj-293f-rhvj","GO-2026-6557"],"related":[],"title":"KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API in github.com/kubeedge/kubeedge","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.","summary":"KubeEdge's v1alpha2 NodeUpgradeJob handler concatenates the spec.version and spec.image fields into a keadm upgrade shell command without sanitizing them. A user who can create or update NodeUpgradeJob resources can inject shell metacharacters and run arbitrary commands on targeted edge nodes with the upgrade process's privileges.","severity":"high","cvss":8.8,"epss":0.00485,"exploited":false,"exploited_at":null,"products":[{"name":"github.com/kubeedge/kubeedge","fixed":["1.21.2","1.22.2","1.23.1"],"affected":">= 1.23.0, < 1.23.1","ecosystem":"go"}],"ecosystems":["go"],"tags":["edge-computing","go","kubeedge","kubernetes","package"],"not_affected_if":["no-nodeupgradejob-permissions-granted","patched-version"],"how_to_check":"Check the KubeEdge version on the cloud side with kubectl get deployment -n kubeedge or the cloudcore image tag; affected if >= 1.12.0 and below 1.21.2, 1.22.2, or 1.23.1 (sources say affected range 1.23.0 to 1.23.1 for the Go module, but description says from 1.12.0).\nList NodeUpgradeJob objects with kubectl get nodeupgradejobs -A and review spec.version and spec.image for shell metacharacters.","fix":"Upgrade KubeEdge to 1.21.2, 1.22.2, or 1.23.1 matching your release line.\nRestrict who can create or update NodeUpgradeJob resources via RBAC until patched.","status":"open","published_at":"2026-09-21T17:17:37+00:00","first_seen_at":"2026-10-23T19:13:08+00:00","triaged_at":"2026-10-23T21:43:57+00:00","updated_at":"2026-10-23T21:43:57+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-23T21:43:57Z","model":"claude-haiku-5-5","output":{"fix":"Upgrade KubeEdge to 1.21.2, 1.22.2, or 1.23.1 matching your release line.\nRestrict who can create or update NodeUpgradeJob resources via RBAC until patched.","reach":"network","impact":"high","summary":"KubeEdge's v1alpha2 NodeUpgradeJob handler concatenates the spec.version and spec.image fields into a keadm upgrade shell command without sanitizing them. A user who can create or update NodeUpgradeJob resources can inject shell metacharacters and run arbitrary commands on targeted edge nodes with the upgrade process's privileges.","category":"package","who_cares":["kubeedge","kubernetes","edge-computing","go"],"confidence":0.7,"needs_auth":"yes","worst_case":"Arbitrary commands run as root-level upgrade process on edge nodes.","analyst_note":"Sources conflict on affected range: govuln lists >=1.23.0 <1.23.1 while the description says from 1.12.0 until 1.21.2, 1.22.2, 1.23.1; confirm at https://pkg.go.dev/vuln/GO-2026-6557 and the GHSA page.","how_to_check":"Check the KubeEdge version on the cloud side with kubectl get deployment -n kubeedge or the cloudcore image tag; affected if >= 1.12.0 and below 1.21.2, 1.22.2, or 1.23.1 (sources say affected range 1.23.0 to 1.23.1 for the Go module, but description says from 1.12.0).\nList NodeUpgradeJob objects with kubectl get nodeupgradejobs -A and review spec.version and spec.image for shell metacharacters.\nUnknown whether a specific audit query is available.","needs_analyst":true,"not_affected_if":["no-nodeupgradejob-permissions-granted","patched-version"],"user_interaction":"no","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000655,"input_tokens":3135,"output_tokens":682,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-2026':18A,26A,29A '-62371':19A,30A '-6557':27A '/kubeedge/kubeedge':16A,33A '1.12.0':106C '1.21.2':108C,180C '1.22.2':109C,181C '1.23.1':111C,183C '293f':23A '5jpj':22A 'api':12A 'applic':98C 'arbitrari':76B,152C 'authent':119C 'avail':173C 'capabl':100C 'caus':151C 'command':2A,57B,77B,133C,153C 'compromis':168C 'comput':36B 'concaten':46B,118C 'confidenti':170C 'container':97C 'control':122C 'creat':65B,139C 'cve':17A,28A 'edg':8A,35B,80B,104C,131C,158C 'edge-comput':34B 'edge/pkg/taskmanager/actions/nodeupgradejob.go':117C 'either':149C 'execut':155C 'extend':95C 'field':51B,150C 'fix':177C 'ghsa':21A 'ghsa-5jpj-293f-rhvj':20A 'github.com':15A,32A 'github.com/kubeedge/kubeedge':14A,31A 'go':25A,37B 'handler':45B,115C 'host':102C 'inject':3A,71B 'integr':171C 'issu':175C 'keadm':54B,129C 'kubeedg':1A,38B,41B,88C 'kubernet':39B 'metacharact':73B,147C 'nativ':96C 'node':9A,81B,159C,169C 'nodeupgradejob':5A,44B,68B,114C,142C 'open':91C 'orchestr':99C 'packag':40B 'permiss':137C 'privileg':87B,162C 'process':85B,166C 'rce':6A 'resourc':69B,143C 'rhvj':24A 'run':75B 'sanit':59B 'shell':56B,72B,132C,146C 'sourc':92C 'spec.image':50B,125C 'spec.version':48B,123C 'suppli':145C 'system':93C 'target':79B,157C 'updat':67B,141C 'upgrad':55B,84B,130C,165C 'user':62B,121C,135C 'user-control':120C 'v1alpha2':11A,43B,113C 'valu':126C 'version':179C 'via':10A 'without':58B","nicknames":[],"mitigations":[],"who_affected":null,"tier":null,"verified":{},"analyst_revisit_at":null,"first_public_at":"2026-09-21T17:17:37+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"govuln","external_id":"GO-2026-6557","url":"https://pkg.go.dev/vuln/GO-2026-6557","severity":null,"published_at":"2026-10-01T20:23:38+00:00","modified_at":"2026-10-01T20:23:38+00:00","first_seen_at":"2026-10-23T19:13:08+00:00","fetched_at":"2026-10-23T19:13:08+00:00","note":null},{"source":"epss","external_id":"CVE-2026-62371","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-62371","severity":null,"published_at":null,"modified_at":null,"first_seen_at":"2026-10-23T19:13:43+00:00","fetched_at":"2026-10-23T19:13:43+00:00","note":null},{"source":"nvd","external_id":"CVE-2026-62371","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62371","severity":null,"published_at":"2026-09-21T17:17:37+00:00","modified_at":"2026-09-24T21:19:05+00:00","first_seen_at":"2026-10-23T19:35:23+00:00","fetched_at":"2026-10-23T19:35:23+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}