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.