Vulnerability details
CVE-2026-40981
Official 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.
CVSS scores
| Score | Version | Source | Vector |
|---|---|---|---|
| 7.5High | 3.1 | CVEProject cvelistV5 (CNA) (vmware) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| 7.5High | 3.1 | CVEProject cvelistV5 (CNA) (redhat-SADP) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected products
| Vendor | Product | Versions | Source |
|---|---|---|---|
| Spring | Spring Cloud Config | 3.1.0 ≤ v < 3.1.14 | CVEProject cvelistV5 (CNA) |
| Spring | Spring Cloud Config | 4.1.0 ≤ v < 4.1.10 | CVEProject cvelistV5 (CNA) |
| Spring | Spring Cloud Config | 4.2.0 ≤ v < 4.2.7 | CVEProject cvelistV5 (CNA) |
| Spring | Spring Cloud Config | 4.3.0 ≤ v < 4.3.3 | CVEProject cvelistV5 (CNA) |
| Spring | Spring Cloud Config | 5.0.0 ≤ v < 5.0.3 | CVEProject cvelistV5 (CNA) |
References and advisories
4- https://spring.io/security/cve-2026-40981
- https://access.redhat.com/security/cve/CVE-2026-40981 vdb-entryx_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2467621 issue-trackingx_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40981.json x_sadp-csaf-vex
Details
- Published
- 2026-05-07
- Last updated
- 2026-07-15
- State
- Published
- Assigner (CNA)
- vmware
Exploit prediction (EPSS)
SSVC assessment (CISA)
- Automatable
- Yes
- Exploitation
- None
- Technical impact
- Partial
Weaknesses (CWE)
- CWE-639Authorization Bypass Through User-Controlled Key
- CWE-1220Insufficient Granularity of Access Control