GHSA-gfw4-49f9-cp25: Medium severity go/github.com/kubeedge/kubeedge vulnerability

Published Sep 22, 2026
·
Updated

Summary

KubeEdge CloudHub uses the viaduct packer to decode messages received from connected peers. The packer reads a 32-bit payload length from the message header and previously allocated a buffer of that size without enforcing an upper bound.

An authenticated peer that can establish a viaduct connection to CloudHub can send a crafted message header containing an excessively large payload length. This may cause CloudHub to allocate a large amount of memory and can result in memory exhaustion, process termination, or denial of service.

Impact

A successfully authenticated malicious or compromised edge node may repeatedly send crafted viaduct message headers to increase CloudHub memory consumption.

Depending on available memory and deployment limits, exploitation may cause:

Increased CloudHub memory usage Out-of-memory termination CloudHub restart loops Temporary disruption of cloud-edge communication

Authentication to the viaduct endpoint is required. This issue does not provide unauthenticated access or direct code execution.

Root cause

The viaduct packer trusted the payload length encoded in the message header and allocated the payload buffer before validating whether the declared length was within an acceptable range.

Fix

The fix introduces a maximum viaduct payload size of 32 MiB.

The updated implementation:

Rejects oversized payload lengths in the reader before memory allocation Enforces the same maximum size in the writer Adds regression tests covering oversized and valid payloads

Fixes have been prepared for the following patch releases:

KubeEdge v1.23.1 KubeEdge v1.22.2 KubeEdge v1.21.2

These versions should not be listed as released until the coordinated release process is complete.

Workarounds

Before patched versions are available, operators should:

Restrict access to the CloudHub endpoint to trusted edge nodes and networks Protect and rotate edge-node credentials Revoke credentials belonging to decommissioned or potentially compromised nodes Apply memory limits and restart policies to the CloudHub workload Monitor CloudHub memory consumption and unexpected connection activity

Affected component

pkg/viaduct/pkg/packer CloudHub viaduct message-processing path

Credits

KubeEdge thanks Sang-Hoon Choi (KoreaSecurity, Sejong University) for responsibly reporting this issue and for coordinating with the KubeEdge maintainers through the security disclosure process.

Affected Software

3 affected componentsFixes available
go/github.com/kubeedge/kubeedge>=1.23.0<1.23.1
1.23.1
go/github.com/kubeedge/kubeedge>=1.22.0<1.22.2
1.22.2
go/github.com/kubeedge/kubeedge>=1.0.0<1.21.2
1.21.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/kubeedge/kubeedge to a version that resolves this vulnerability.

    Fixed in 1.23.1
  2. Upgrade

    Upgrade go/github.com/kubeedge/kubeedge to a version that resolves this vulnerability.

    Fixed in 1.22.2
  3. Upgrade

    Upgrade go/github.com/kubeedge/kubeedge to a version that resolves this vulnerability.

    Fixed in 1.21.2
  4. Upgrade

    Upgrade KubeEdge to a version that resolves this vulnerability.

    Fixed in v1.21.2
  5. Upgrade

    Upgrade KubeEdge to a version that resolves this vulnerability.

    Fixed in v1.22.2
  6. Upgrade

    Upgrade KubeEdge to a version that resolves this vulnerability.

    Fixed in v1.23.1
  7. Compensating control

    Apply memory limits and restart policies to the CloudHub workload.

  8. Compensating control

    Restrict access to the CloudHub endpoint to trusted edge nodes and networks.

  9. Compensating control

    Monitor CloudHub memory consumption and unexpected connection activity.

  10. Operational

    Protect and rotate edge-node credentials.

  11. Operational

    Revoke credentials belonging to decommissioned or potentially compromised nodes.

Event History

Sep 22, 2026
Advisory Published
via GitHub·08:37 PM
Data Sourced
via GitHub·08:37 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated peer that can establish a viaduct connection to CloudHub can exploit it. In practice, this includes a malicious or compromised authenticated edge node; unauthenticated attackers cannot use this issue to gain access.

2

What is the operational impact of successful exploitation?

An attacker can repeatedly send message headers with excessive payload lengths, causing CloudHub to consume large amounts of memory. Depending on available memory and deployment limits, this can cause out-of-memory termination, restart loops, and temporary disruption of cloud-edge communication.

3

Does exploitation lead to code execution or data exposure?

No. The described impact is denial of service through memory exhaustion; the issue does not provide direct code execution or unauthenticated access.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203