CVE-2026-40981

Published May 7, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
When using Google Secrets Manager as a backend for the Spring Cloud Config server a client can craft a request to the config server potentially exposing secrets from unintended GCP projects.
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

A crafted request to the Spring Cloud Config server, when configured with Google Secrets Manager, can expose secrets from unintended Google Cloud Platform projects. The vulnerability stems from insufficient authorization checks, allowing an attacker to request data tied to other projects and obtain sensitive credentials. The exposed information includes service account keys, passwords, and other secrets that could be leveraged for further compromise. The weakness aligns with CWE-1220, Configuration Information Leak, and CWE-639, Authorization Bypass Through User‑Controlled Key. The likely attack vector is a crafted request from a client possessing network access to the Config server.

Affected Systems

Spring Cloud Config from the Spring vendor is affected. Versions 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 allow this exploitation. Non‑affected releases begin with 3.1.14, 4.1.10, 4.2.7, 4.3.3, and 5.0.3 respectively. Upgrading to the latest supported patch level prevents secret exposure.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity risk. The EPSS score of 0.43% demonstrates a very low but non‑zero probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog, suggesting it has not yet been widely exploited. Nonetheless, based on the description, the likely attack vector is remote and can be performed by a client with network access to the config server, potentially from an internal or compromised machine. Because secrets are exposed, the impact on confidentiality is significant; an attacker could use the data for lateral movement or to impersonate services. The weakness aligns with CWE-1220, Configuration Information Leak, and CWE-639, Authorization Bypass Through User‑Controlled Key.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Spring Cloud Config to a non‑affected version (3.1.14+ or higher, 4.1.10+ or higher, 4.2.7+ or higher, 4.3.3+ or higher, or 5.0.3+).
  • Restrict network access to the config server so only trusted clients can communicate with it—use firewalls or VPNs to isolate the service from public exposure.
  • Review and tighten IAM permissions for Google Secrets Manager so only the intended projects and services can access secrets, and verify that the config server references the correct project ID.

Generated by OpenCVE AI on August 14, 2026 at 03:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2mh5-3cw6-hrrq Spring Cloud Config has an Authorization Bypass Through User-Controlled Key
History
Type Values Removed Values Added
Title Spring Cloud Config Google Secrets Manager Backend Allows Exposure of Secrets from Unintended GCP Projects
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
First Time appeared Spring
Spring spring Cloud Config
Vendors & Products Spring
Spring spring Cloud Config
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Title Spring Cloud Config Google Secrets Manager Backend Allows Exposure of Secrets from Unintended GCP Projects
Type Values Removed Values Added
Description When using Google Secrets Manager as a backend for the Spring Cloud Config server a client can craft a request to the config server potentially exposing secrets from unintended GCP projects. 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-639
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-1220

    Insufficient Granularity of Access Control

  • CWE-639

    Authorization Bypass Through User-Controlled Key

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