Improper authorization in Spring Cloud Config - CVE-2025-22232

 

Improper authorization in Spring Cloud Config - CVE-2025-22232

Published: April 8, 2025


Vulnerability identifier: #VU107154
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-22232
CWE-ID: CWE-285
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain access to sensitive information.

The vulnerability exists due to an error when handling Vault tokens sent via the X-CONFIG-TOKEN header, as the application may not use Vault token sent by the client. The SessionManager persists the first token it retrieves and will continue to use that token even if client requests to the Spring Cloud Config Server include a X-CONFIG-TOKEN header with a different value. A remote attacker can bypass authorization checks and gain unauthorized access to the application.


Affected software

Spring Cloud Config

How to mitigate CVE-2025-22232

Install updates from vendor's website.

Spring Cloud Config - addressed in versions 3.1.10, 4.0.10, 4.1.6, 4.2.1

External References

Related Security Bulletins