4.4medium
KubeEdge CloudCore Router memory exhaustion
- Severity
- 4.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.73% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-qpx3-9565-5xwmGO-2022-0510
Description
KubeEdge is an open source system for extending native containerized application orchestration capabilities to hosts at Edge. Prior to versions 1.11.1, 1.10.2, and 1.9.4, the CloudCore Router does not impose a limit on the size of responses to requests made by the REST handler. An attacker could use this weakness to make a request that will return an HTTP response with a large body and cause DoS of CloudCore. In the HTTP Handler API, the rest handler makes a request to a pre-specified handle. The handle will return an HTTP response that is then read into memory. The consequence of the exhaustion is that CloudCore will be in a denial of service. Only an authenticated user of the cloud can make an attack. It will be affected only when users enable `router` module in the config file `cloudcore.yaml`. This bug has been fixed in Kubeedge 1.11.1, 1.10.2, and 1.9.4. As a workaround, disable the router switch in the config file `cloudcore.yaml`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| kubeedge kubeedge | < 1.9.4, >= 1.10.0, < 1.10.2, = 1.11.0 | CVE List |
| github.com/kubeedge/kubeedge (Go) | from 1.11.0 before 1.11.1, from 1.10.0 before 1.10.2, before 1.9.4 | GitHub Advisory Database, Go Vulnerability Database |
| linuxfoundation kubeedge | before 1.9.4, from 1.10.0 before 1.10.2, from 1.11.0 before 1.11.1 | NVD |
All scores
| GitHub_M | 4.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 4.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:N/A:P |
Classification
What each source says
CVE List
KubeEdge is an open source system for extending native containerized application orchestration capabilities to hosts at Edge. Prior to versions 1.11.1, 1.10.2, and 1.9.4, the CloudCore Router does not impose a limit on the size of responses to requests made by the REST handler. An attacker could use this weakness to make a request that will return an HTTP response with a large body and cause DoS of CloudCore. In the HTTP Handler API, the rest handler makes a request to a pre-specified handle. The handle will return an HTTP response that is then read into memory. The consequence of the exhaustion is that CloudCore will be in a denial of service. Only an authenticated user of the cloud can make an attack. It will be affected only when users enable `router` module in the config file `cloudcore.yaml`. This bug has been fixed in Kubeedge 1.11.1, 1.10.2, and 1.9.4. As a workaround, disable the router switch in the config file `cloudcore.yaml`.
GitHub Advisory Database
Impact
The CloudCore Router does not impose a limit on the size of responses to requests made by the REST handler. An attacker could use this weakness to make a request that will return an HTTP response with a large body and cause DoS of CloudCore. In the HTTP Handler API, the rest handler makes a request to a pre-specified handle. The handle will return an HTTP response that is then read into memory. The consequence of the exhaustion is that CloudCore will be in a denial of service.
Only an authenticated user of the cloud can make an attack. It will be affected only when users enable router module in the config file cloudcore.yaml as below.
modules:
...
router:
enable: true
Patches
This bug has been fixed in Kubeedge 1.11.1, 1.10.2, 1.9.4. Users should update to these versions to resolve the issue.
Workarounds
Disable the router module in the config file cloudcore.yaml.
References
NA
Credits
Thanks David Korczynski and Adam Korczynski of ADA Logics for responsibly disclosing this issue in accordance with the kubeedge security policy during a security audit sponsored by CNCF and facilitated by OSTIF.
For more information
If you have any questions or comments about this advisory:
- Open an issue in KubeEdge repo
- To make a vulnerability report, email your vulnerability to the private cncf-kubeedge-security@lists.cncf.io list with the security details and the details expected for KubeEdge bug reports.
Go Vulnerability Database
KubeEdge CloudCore Router memory exhaustion vulnerability in github.com/kubeedge/kubeedge
NVD (es)
KubeEdge es un sistema de código abierto para extender las capacidades de orquestación de aplicaciones nativas en contenedores a los hosts en Edge. En versiones anteriores a 1.11.1, 1.10.2 y 1.9.4, el enrutador CloudCore no impone un límite al tamaño de las respuestas a las peticiones realizadas por el manejador REST. Un atacante podría usar esta debilidad para hacer una petición que devuelva una respuesta HTTP con un cuerpo grande y causar DoS de CloudCore. En la API del manejador HTTP, el manejador de descanso hace una petición a un manejador preestablecido. El manejador devolverá una respuesta HTTP que luego es leída en la memoria. La consecuencia del agotamiento es que CloudCore será encontrado en una situación de denegación de servicio. Sólo un usuario autenticado de la nube puede realizar un ataque. Sólo está afectado cuando los usuarios habiliten el módulo "router" en el archivo de configuración "cloudcore.yaml". Este error ha sido corregido en Kubeedge versiones 1.11.1, 1.10.2 y 1.9.4. Como mitigación, deshabilite el interruptor del enrutador en el archivo de configuración "cloudcore.yaml"
References
| https://github.com/kubeedge/kubeedge/security/advisories/GHSA-qpx3-9565-5xwm | advisory, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-31078 | advisory | |
| https://github.com/kubeedge/kubeedge | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31078 changed 2025-04-23 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qpx3-9565-5xwm changed 2024-08-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0510 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2022-31078 changed 2026-06-17 | Public domain |