{"id":"GHSA-2mh5-3cw6-hrrq","summary":"Spring Cloud Config has an Authorization Bypass Through User-Controlled Key ","details":"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.\nSpring 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.","aliases":["CVE-2026-40981"],"modified":"2026-06-11T15:00:10.468777112Z","published":"2026-05-07T06:31:41Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-05-11T16:19:03Z","nvd_published_at":"2026-05-07T04:16:24Z","cwe_ids":["CWE-639"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40981"},{"type":"PACKAGE","url":"https://github.com/spring-cloud/spring-cloud-config"},{"type":"WEB","url":"https://spring.io/security/cve-2026-40981"}],"affected":[{"package":{"name":"org.springframework.cloud:spring-cloud-config-server","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.1.0"},{"last_affected":"3.1.13"}]}],"versions":["3.1.0","3.1.1","3.1.10","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.8","3.1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2mh5-3cw6-hrrq/GHSA-2mh5-3cw6-hrrq.json"}},{"package":{"name":"org.springframework.cloud:spring-cloud-config-server","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.1.0"},{"last_affected":"4.1.9"}]}],"versions":["4.1.0","4.1.1","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.1.7"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2mh5-3cw6-hrrq/GHSA-2mh5-3cw6-hrrq.json"}},{"package":{"name":"org.springframework.cloud:spring-cloud-config-server","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.2.0"},{"last_affected":"4.2.6"}]}],"versions":["4.2.0","4.2.1","4.2.2","4.2.3","4.2.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2mh5-3cw6-hrrq/GHSA-2mh5-3cw6-hrrq.json"}},{"package":{"name":"org.springframework.cloud:spring-cloud-config-server","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.3.0"},{"fixed":"4.3.3"}]}],"versions":["4.3.0","4.3.1","4.3.2"],"database_specific":{"last_known_affected_version_range":"\u003c= 4.3.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2mh5-3cw6-hrrq/GHSA-2mh5-3cw6-hrrq.json"}},{"package":{"name":"org.springframework.cloud:spring-cloud-config-server","ecosystem":"Maven","purl":"pkg:maven/org.springframework.cloud/spring-cloud-config-server"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.0.0"},{"fixed":"5.0.3"}]}],"versions":["5.0.0","5.0.1","5.0.2"],"database_specific":{"last_known_affected_version_range":"\u003c= 5.0.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-2mh5-3cw6-hrrq/GHSA-2mh5-3cw6-hrrq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}