Kubernetes API Server JSON/YAML parsing vulnerable to resource exhaustion attack
Kubernetes
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| k8s.io/kubernetes Go |
|
|
Kubernetes
| Product | Affected | Fixed in |
|---|---|---|
| k8s.io/kubernetes Go |
|
|
Improper input validation in the Kubernetes API server in versions v1.0-1.12 and versions prior to v1.13.12, v1.14.8, v1.15.5, and v1.16.2 allows authorized users to send malicious YAML or JSON payloads, causing the API server to consume excessive CPU or memory, potentially crashing and becoming unavailable. Prior to v1.14.0, default RBAC policy authorized anonymous users to submit requests that could trigger this vulnerability. Clusters upgraded from a version prior to v1.14.0 keep the more permissive policy by default for backwards compatibility.
From the CVE record · kubernetes
The Kubernetes API server improperly validates YAML and JSON payloads. Authorized users can send malicious payloads that consume excessive CPU or memory, potentially crashing the server and making it unavailable. Anonymous users may also be able to trigger this in versions before v1.14.0 or in clusters upgraded from those versions that retain the permissive default RBAC policy.
Operators running Kubernetes versions v1.0.0 through v1.13.11, v1.14.0 through v1.14.7, v1.15.0 through v1.15.4, or v1.16.0 through v1.16.1 should check their clusters.