Improper Authorization Affecting org.springframework.cloud:spring-cloud-config-server package, versions [2.2.0,3.1.10)[4.0.0,4.1.6)[4.2.0,4.2.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

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 Improper Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKCLOUD-9674187
  • published9 Apr 2025
  • disclosed7 Apr 2025
  • creditMohammad Shamsi, Max Brauer

Introduced: 7 Apr 2025

NewCVE-2025-22232  (opens in a new tab)
CWE-285  (opens in a new tab)

How to fix?

Upgrade org.springframework.cloud:spring-cloud-config-server to version 3.1.10, 4.1.6, 4.2.2 or higher.

Overview

org.springframework.cloud:spring-cloud-config-server is a library that provides an HTTP resource-based API for external configuration.

Affected versions of this package are vulnerable to Improper Authorization due to not using the Vault token sent by clients using a X-CONFIG-TOKEN header when making requests to Vault.

Note:

This is only exploitable if all of the following conditions are met:

  1. You have Spring Vault on the classpath of your Spring Cloud Config Server;

  2. You are using the X-CONFIG-TOKEN header to send a Vault token to the Spring Cloud Config Server for the Config Server to use when making requests to Vault;

  3. You are using the default Spring Vault SessionManager implementation LifecycleAwareSessionManager or a SessionManager implementation that persists the Vault token such as SimpleSessionManager.

CVSS Base Scores

version 4.0
version 3.1