CVE-2026-59434: Remote Code Execution In Spring Cloud Kubernetes via ConfigMap/Secret YAML
Spring Cloud Kubernetes parses ConfigMap and Secret entries ending in .yaml with a SnakeYAML Yaml instance created without a SafeConstructor or any type restrictions.
If the application's classpath contains a SnakeYAML version earlier than 2.0, an attacker with write access to a ConfigMap or Secret that the application reads can supply a YAML payload that instantiates arbitrary Java types.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications using Spring Cloud Kubernetes are exposed when they read ConfigMap or Secret entries whose names end in .yaml and their classpath includes SnakeYAML earlier than 2.0. The issue depends on that YAML parsing path being used.
What access does an attacker need?
An attacker needs write access to a ConfigMap or Secret that the application reads. The supplied value must be a YAML payload capable of instantiating arbitrary Java types under the affected SnakeYAML version.
Are applications using a default-safe YAML parser configuration affected?
The vulnerable behavior is specifically a SnakeYAML Yaml instance created without a SafeConstructor or type restrictions. Deployments using SnakeYAML 2.0 or later are not described as affected by this condition.
How can I assess whether an application is currently at risk?
Check whether the application uses Spring Cloud Kubernetes to consume ConfigMap or Secret entries ending in .yaml, and determine the SnakeYAML version present on its runtime classpath. A version earlier than 2.0 combined with writable consumed resources indicates exposure.