CVE-2026-62371: KubeEdge Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-5jpj-293f-rhvj
CVSS 8.8
CWE-78
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-62371
GHSA Identifier GHSA-5jpj-293f-rhvj
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product KubeEdge
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

github.com/kubeedge/kubeedge fixed: 1.21.2
Upgrade github.com/kubeedge/kubeedge to 1.21.2
github.com/kubeedge/kubeedge fixed: 1.22.2
Upgrade github.com/kubeedge/kubeedge to 1.22.2
github.com/kubeedge/kubeedge fixed: 1.23.1
Upgrade github.com/kubeedge/kubeedge to 1.23.1
Verify Direct and Transitive Dependencies

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

## 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: * KubeEdge v1.23.1 * KubeEdge v1.22.2 * KubeEdge v1.21.2 ## Workarounds Until a patched version is available: * restrict permission to create or update `NodeUpgradeJob` resources to trusted administrators; * do not allow untrusted users or tenants to control the `spec.version` or `spec.image` fields; * avoid using NodeUpgradeJob-based edge upgrades in environments where these fields may be influenced by untrusted users. ## Credits KubeEdge thanks Sang-Hoon Choi ([KoreaSecurity](https://github.com/KoreaSecurity), Sejong University) for responsibly reporting this issue and for coordinating with the KubeEdge maintainers through the security disclosure process.

CVE-2026-62371 Affected KubeEdge Versions

3 component(s)
Fixed Versions:
1.21.21.22.21.23.1
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?
CVE-2026-62371 is a security vulnerability in KubeEdge involving Command Injection in NodeUpgradeJob - RCE on edge nodes via v1alpha2 API under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which KubeEdge versions are affected?
Affected versions include releases prior to 1.21.2, 1.22.2, 1.23.1 across affected packages: github.com/kubeedge/kubeedge.
What version fixes CVE-2026-62371?
Upgrading to 1.21.2, 1.22.2, 1.23.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kubeedge/kubeedge affected?
Yes, github.com/kubeedge/kubeedge is affected in releases prior to 1.21.2, 1.22.2, 1.23.1. Upgrade your dependency to 1.21.2, 1.22.2, 1.23.1 or later.
What is the CVSS score of CVE-2026-62371?
CVE-2026-62371 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2026-62371?
CVE-2026-62371 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (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.).
How can I check Go dependencies for CVE-2026-62371?
Run the dependency tree command: 'inspect dependencies for github.com/kubeedge/kubeedge'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}