Arbitrary Code Injection Affecting org.springframework.cloud:spring-cloud-kubernetes-commons package, versions [3.1.0,5.0.5)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKCLOUD-22732942
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-59434  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade org.springframework.cloud:spring-cloud-kubernetes-commons to version 5.0.5 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection in the parsing of ConfigMap and Secret entries ending in .yaml using a SnakeYAML Yaml instance without a SafeConstructor or type restrictions. An attacker can execute arbitrary code by supplying a crafted YAML payload if they have write access to a ConfigMap or Secret that the application reads. This is only exploitable if the application's classpath contains a SnakeYAML version earlier than 2.0.

CVSS Base Scores

version 4.0
version 3.1