CVE-2026-40982

Unauthorized File Disclosure via Directory Traversal in Spring Cloud Config Server

Published May 7, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
Spring Cloud Config allows applications to serve arbitrary text and binary files through the spring-cloud-config-server module. A malicious user, or attacker, can send a request using a specially crafted URL that can lead to a directory traversal attack.
Spring Cloud Config 3.1.x: affected from 3.1.0 through 3.1.13 (inclusive); upgrade to 3.1.14 or greater (Enterprise Support Only). Spring Cloud Config 4.1.x: affected from 4.1.0 through 4.1.9 (inclusive); upgrade to 4.1.10 or greater (Enterprise Support Only). Spring Cloud Config 4.2.x: affected from 4.2.0 through 4.2.6 (inclusive); upgrade to 4.2.7 or greater (Enterprise Support Only). Spring Cloud Config 4.3.x: affected from 4.3.0 through 4.3.2 (inclusive); upgrade to 4.3.3 or greater. Spring Cloud Config 5.0.x: affected from 5.0.0 through 5.0.2 (inclusive); upgrade to 5.0.3 or greater.

Analysis

AI-generated

Technical impact

Spring Cloud Config enables applications to serve arbitrary text and binary files via the spring-cloud-config-server module. A specially crafted URL can trigger a directory traversal exploit, allowing an attacker to access and download files outside the intended configuration directory. The flaw directly compromises confidentiality by exposing potentially sensitive files on the server, and could enable further attacks if those files contain secrets or executable code.

Affected Systems

The affected product is Spring Cloud Config. Versions vulnerable include 3.1.0 through 3.1.13, 4.1.0 through 4.1.9, 4.2.0 through 4.2.6, 4.3.0 through 4.3.2, and 5.0.0 through 5.0.2. All affected releases use the spring-cloud-config-server module. Users on Enterprise Support configurations should upgrade to 3.1.14 or later, 4.1.10 or later, 4.2.7 or later, 4.3.3 or later, and 5.0.3 or later, respectively.

Risk and Exploitability

The vulnerability carries a CVSS score of 9.1, indicating a high severity. The EPSS score is not available, but the lack of a KEV listing does not diminish the potential impact. The attack requires sending a crafted request to the Config Server over the network; the exploit can be performed by any user who can reach the server’s endpoint. Because the flaw allows reading of arbitrary files, an adversary could acquire confidential data or use the information to facilitate additional attacks. Given the high CVSS score and the ability to exploit the flaw remotely, the risk is significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Cloud Config to a fixed version (≥3.1.14, 4.1.10, 4.2.7, 4.3.3, or 5.0.3 as appropriate).
  • Restrict network access to the Config Server API so that only trusted clients can reach it.
  • Audit the configuration to ensure that file path validation is enforced and that the server does not expose unintended directories.

Generated by OpenCVE AI on May 7, 2026 at 05:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6g23-24mc-hx6x Spring Cloud Config vulnerable to Path Traversal
History
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Cloud Config
CPEs cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Cloud Config
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring Cloud Config
Vendors & Products Spring
Spring spring Cloud Config
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Unauthorized File Disclosure via Directory Traversal in Spring Cloud Config Server
Type Values Removed Values Added
Description Spring Cloud Config allows applications to serve arbitrary text and binary files through the spring-cloud-config-server module. A malicious user, or attacker, can send a request using a specially crafted URL that can lead to a directory traversal attack. Spring Cloud Config 3.1.x: affected from 3.1.0 through 3.1.13 (inclusive); upgrade to 3.1.14 or greater (Enterprise Support Only). Spring Cloud Config 4.1.x: affected from 4.1.0 through 4.1.9 (inclusive); upgrade to 4.1.10 or greater (Enterprise Support Only). Spring Cloud Config 4.2.x: affected from 4.2.0 through 4.2.6 (inclusive); upgrade to 4.2.7 or greater (Enterprise Support Only). Spring Cloud Config 4.3.x: affected from 4.3.0 through 4.3.2 (inclusive); upgrade to 4.3.3 or greater. Spring Cloud Config 5.0.x: affected from 5.0.0 through 5.0.2 (inclusive); upgrade to 5.0.3 or greater.
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jul 15, 2026, 1:00 AM
Reserved
Apr 16, 2026, 2:19 AM
Status
Modified
Published
May 7, 2026, 4:16 AM
Modified
Oct 26, 2026, 7:10 PM