# GHSA-GFW4-49F9-CP25: KubeEdge: Unbounded allocation in viaduct packer enables authenticated remote DoS against CloudHub

- Database: GitHub
- Severity: medium (stated by ghsa, no CVSS score)
- Published: 2026-09-22
- Modified: 2026-10-01

## Tracked as

- [CVE-2026-62370](https://cve.now/CVE-2026-62370.md): KubeEdge: Unbounded allocation in viaduct packer enables authenticated remote DoS against CloudHub

## Also published as

- [GO-2026-6569](https://cve.now/GO-2026-6569.md) (Go)

## Affected versions

- github.com/kubeedge/kubeedge (Go): from 1.0.0, fixed in 1.21.2
- github.com/kubeedge/kubeedge (Go): from 1.22.0, fixed in 1.22.2
- github.com/kubeedge/kubeedge (Go): from 1.23.0, fixed in 1.23.1

## Description

## 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](https://github.com/KoreaSecurity), Sejong University)
for responsibly reporting this issue and for coordinating with the KubeEdge
maintainers through the security disclosure process.

## References

- https://github.com/kubeedge/kubeedge/security/advisories/GHSA-gfw4-49f9-cp25
- https://nvd.nist.gov/vuln/detail/CVE-2026-62370
- https://github.com/kubeedge/kubeedge/pull/7028
- https://github.com/kubeedge/kubeedge/pull/7029
- https://github.com/kubeedge/kubeedge/pull/7030
- https://github.com/kubeedge/kubeedge/commit/0fe1ea18e5d7fde29633286ddf1c7e71cb39606f
- https://github.com/kubeedge/kubeedge/commit/725a73ca35a65d91aa6338e52b8faaab6058f528
- https://github.com/kubeedge/kubeedge/commit/cc79621943fff9d3f62638d9403ef0cfeda3d0e7
- https://github.com/kubeedge/kubeedge
- https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.21.md
- https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.22.md
- https://github.com/kubeedge/kubeedge/blob/master/CHANGELOG/CHANGELOG-1.23.md
- https://github.com/kubeedge/kubeedge/releases/tag/v1.21.2
- https://github.com/kubeedge/kubeedge/releases/tag/v1.22.2
- https://github.com/kubeedge/kubeedge/releases/tag/v1.23.1

Page: https://cve.now/GHSA-GFW4-49F9-CP25

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
