CVE-2026-62371: KubeEdge Remote Code Execution Vulnerability
HIGHCVE-2026-62371 is a HIGH (CVSS 8.8) remote code execution vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting KubeEdge libraries in the Go ecosystem. The issue involves command injection in nodeupgradejob - rce on edge nodes via v1alpha2 api. Remediation is available by upgrading affected packages to version 1.21.2, 1.22.2, 1.23.1.
CVE-2026-62371 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-62371
To remediate this vulnerability, upgrade all affected KubeEdge dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/kubeedge/kubeedge to 1.21.2
Upgrade github.com/kubeedge/kubeedge to 1.22.2
Upgrade github.com/kubeedge/kubeedge to 1.23.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/kubeedge/kubeedge
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-62371, inspect your project dependencies for KubeEdge:
inspect dependencies for github.com/kubeedge/kubeedge
Analyze the terminal output to locate any version of KubeEdge in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.21.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In KubeEdge, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-62371 Affected KubeEdge Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/kubeedge/kubeedge
|
Go |
≥ 1.12.0
< 1.21.2
|
1.21.2
|
|
github.com/kubeedge/kubeedge
|
Go |
≥ 1.22.0
< 1.22.2
|
1.22.2
|
|
github.com/kubeedge/kubeedge
|
Go |
≥ 1.23.0
< 1.23.1
|
1.23.1
|
References
Frequently Asked Questions
What is CVE-2026-62371?
Which KubeEdge versions are affected?
What version fixes CVE-2026-62371?
Is github.com/kubeedge/kubeedge affected?
What is the CVSS score of CVE-2026-62371?
What CWE is associated with CVE-2026-62371?
How can I check Go dependencies for CVE-2026-62371?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5jpj-293f-rhvj",
"modified" : "2026-09-22T20:37:04Z",
"published" : "2026-09-22T20:37:04Z",
"aliases" : [ "CVE-2026-62371" ],
"summary" : "KubeEdge: Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API",
"details" : "## 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kubeedge/kubeedge"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.12.0"
}, {
"fixed" : "1.21.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kubeedge/kubeedge"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.22.0"
}, {
"fixed" : "1.22.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/kubeedge/kubeedge"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.23.0"
}, {
"fixed" : "1.23.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/security/advisories/GHSA-5jpj-293f-rhvj"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-62371"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/pull/7028"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/pull/7029"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/pull/7030"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/commit/552af457a4c7ce80ea1678ab5889f475b36ea103"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/commit/657b745bebcdd7a221eb34c0aac13231ef12c37f"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/commit/b72db7f8a0f7be23261b4349eab33024b2007df0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/kubeedge/kubeedge"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.21.md"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.22.md"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.23.md"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/releases/tag/v1.21.2"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/releases/tag/v1.22.2"
}, {
"type" : "WEB",
"url" : "https://github.com/kubeedge/kubeedge/releases/tag/v1.23.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-78" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-09-22T20:37:04Z",
"nvd_published_at" : "2026-09-21T17:17:37Z"
}
}