CVE-2026-40981
Spring Cloud Config has an Authorization Bypass Through User-Controlled Key
Reported by vmware · Published May 7, 2026
spring-cloud-config-server is fixed in 5.0.3, 4.3.3, 4.2.6 and 2 more (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.springframework.cloud:spring-cloud-config-server | Maven Central | 5.0.3, 4.3.3, 4.2.6, 4.1.9, 3.1.13 |
| org.springframework.cloud:spring-cloud-config | Maven Central | 5.0.3, 4.3.3, 4.2.6, 4.1.9, 3.1.13 |
| spring_cloud_config | vmware | 5.0.3, 4.3.3, 4.2.7, 4.1.10, 3.1.14 |
| Spring Cloud Config | Spring | 5.0.3, 4.3.3, 4.2.7, 4.1.10, 3.1.14 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Cloud Config | 3.1.0, 4.1.0, 4.2.0 |
| Red Hat | Red Hat Enterprise Linux 8 | |
| Maven | org.springframework.cloud:spring-cloud-config-server | 5.0.0, 3.1.0, 4.3.0 |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | |
| Maven | org.springframework.cloud:spring-cloud-config | 5.0.0, 3.1.0, 4.1.0 |
| Spring | Spring Cloud Config | 5.0.0, 4.3.0, 4.2.0 |
| Red Hat | Red Hat Enterprise Linux 8 |
Timeline
- May 6, 2026 CVE Published
- May 7, 2026 PoC Published
- May 11, 2026 CVE Updated
- May 18, 2026 EPSS Score (30 in total, the first dated here)
- Jun 1, 2026 Security Advisory
- Aug 6, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-40981
vulnetix vdb fixes CVE-2026-40981
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-40981/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-40981 advisory
- https://github.com/advisories/GHSA-2mh5-3cw6-hrrq advisory
- https://access.redhat.com/security/cve/CVE-2026-40981 vdb
- RHBZ#2467621 issue
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40981.json url
- https://github.com/spring-cloud/spring-cloud-config url