CVE-2026-22739 Spring Cloud Config Profile Substitution Can Allow Unintended Access To Files And Enable SSRF Attacks
Attackers can access files outside configured directories and perform SSRF attacks when Spring Cloud Config Server uses native file system backend.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-22739?
CVE-2026-22739 is a high-severity path traversal vulnerability in Spring Cloud, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Vulnerability in Spring Cloud when substituting the profile parameter from a request made to the Spring Cloud Config Server configured to the native file system as a backend, because it was possible to access files outside of the configured search directories.This issue affects Spring Cloud: from 3.1.X before 3.1.13, from 4.1.X before 4.1.9, from 4.2.X before 4.2.3, from 4.3.X before 4.3.2, from 5.0.X before 5.0.2.
Weakness: CWE-22
Which versions are affected by CVE-2026-22739?
10 open source packages ship an affected version, including org.springframework.cloud:spring-cloud-config-server. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework.cloud:spring-cloud-config-server Maven | All versions to 3.1.10 | None |
org.springframework.cloud:spring-cloud-config-server Maven | All versions to 3.1.10 | None |
org.springframework.cloud:spring-cloud-config-server Maven | From 4.0.0 to 4.1.7 | None |
org.springframework.cloud:spring-cloud-config-server Maven | From 4.0.0 to 4.1.7 | None |
org.springframework.cloud:spring-cloud-config-server Maven | From 4.2.0 to 4.2.4 | None |
org.springframework.cloud:spring-cloud-config-server Maven | From 4.2.0 to 4.2.4 | None |
4 more packages
org.springframework.cloud:spring-cloud-config-server Maven | From 4.3.0 | 4.3.2 |
org.springframework.cloud:spring-cloud-config-server Maven | From 4.3.0 | 4.3.2 |
org.springframework.cloud:spring-cloud-config-server Maven | From 5.0.0-M1 | 5.0.2 |
org.springframework.cloud:spring-cloud-config-server Maven | From 5.0.0-M1 | 5.0.2 |
Products include Vmware Spring Cloud Config.
How do I fix CVE-2026-22739?
Upgrade org.springframework.cloud:spring-cloud-config-server to a fixed version for your release line: 4.3.2 or 5.0.2.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-22739 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-22739 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in Spring Cloud
- CVE-2020-5410 VMware Tanzu Spring Cloud Config Directory Traversal
- CVE-2026-40982 Spring Cloud Config vulnerable to Path Traversal
- CVE-2026-40981 Spring Cloud Config has an Authorization Bypass Through User-Controlled Key
- CVE-2026-41002 Spring Cloud Config Server Susceptible To TOCTOU Attack
- CVE-2026-47836 Spring Cloud Config Server Susceptible To TOCTOU Attack When Using SVN
Sources
Also known as GHSA-3qwq-q9vm-5j42, ROOT-APP-MAVEN-CVE-2026-22739.