cbcvebase.
CVE-2020-0646
published 2020-01-14

CVE-2020-0646: A remote code execution vulnerability exists when the Microsoft .NET Framework fails to validate input properly, aka '.NET Framework Remote Code Execution…

PriorityP195critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOIT
CISA Known Exploited Vulnerabilitydue 2022-05-03
Exploited in the wild
EPSS
99.22%
99.9th percentile
A remote code execution vulnerability exists when the Microsoft .NET Framework fails to validate input properly, aka '.NET Framework Remote Code Execution Injection Vulnerability'.

Affected

99 ranges· showing 25
VendorProductVersion rangeFixed in
microsoftmicrosoft_net_framework_3.0
microsoftmicrosoft_net_framework_3.0
microsoftmicrosoft_net_framework_3.0
microsoftmicrosoft_net_framework_3.5
microsoftmicrosoft_net_framework_3.5
microsoftmicrosoft_net_framework_3.5
microsoftmicrosoft_net_framework_3.5
microsoftmicrosoft_net_framework_3.5
microsoftmicrosoft_net_framework_3.5
microsoftmicrosoft_net_framework_3.5
microsoftmicrosoft_net_framework_3.5.1
microsoftmicrosoft_net_framework_3.5.1
microsoftmicrosoft_net_framework_3.5.1
microsoftmicrosoft_net_framework_3.5.1
microsoftmicrosoft_net_framework_3.5.1
microsoftmicrosoft_net_framework_3.5_and_4.6.2_4.7_4.7.1_4.7.2_on_windows_10_version_1607
microsoftmicrosoft_net_framework_3.5_and_4.6.2_4.7_4.7.1_4.7.2_on_windows_server_2016
microsoftmicrosoft_net_framework_3.5_and_4.7.1_4.7.2_on_windows_10_version_1709_for_32-bi
microsoftmicrosoft_net_framework_3.5_and_4.7.1_4.7.2_on_windows_10_version_1709_for_x64-b
microsoftmicrosoft_net_framework_3.5_and_4.7.2_on_windows_10_for_32-bit_systems
microsoftmicrosoft_net_framework_3.5_and_4.7.2_on_windows_10_for_x64-based_systems
microsoftmicrosoft_net_framework_3.5_and_4.7.2_on_windows_10_version_1803_for_32-bit_syst
microsoftmicrosoft_net_framework_3.5_and_4.7.2_on_windows_10_version_1803_for_x64-based_s
microsoftmicrosoft_net_framework_3.5_and_4.7.2_on_windows_10_version_1809_for_32-bit_syst
microsoftmicrosoft_net_framework_3.5_and_4.7.2_on_windows_10_version_1809_for_x64-based_s

Detection & IOCsextracted from sources · hover to see the quote

path/_vti_bin/webpartpages.asmx
commandSystem.Diagnostics.Process.Start
otherValidateWorkflowMarkupAndCreateSupportObjectsResponse
snort
alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"ET EXPLOIT .NET Framework Remote Code Execution Injection (CVE-2020-0646)"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"_vti_bin"; content:"/webpartpages.asmx"; endswith; http.request_body; content:"<?xml"; content:"System.Diagnostics.Process.Start"; fast_pattern; reference:url,dl.packetstormsecurity.net/2003-exploits/sharepoint_workflows_xoml.rb.txt; reference:cve,2020-0646; classtype:attempted-admin; sid:2034509; rev:1; metadata:created_at 2021_11_18, cve CVE_2020_0646, confidence Medium, signature_severity Major, tag CISA_KEV, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2021_11_18, mitre_tactic_id TA0001, mitre_tactic_name Initial_Access, mitre_technique_id T1190, mitre_technique_name Exploit_Public_Facing_Application;)
  • Exploit sends an HTTP POST to the SharePoint endpoint /_vti_bin/webpartpages.asmx with Content-Type text/xml containing specially crafted XOML data embedding System.Diagnostics.Process.Start for command execution.
  • A successful exploitation response contains the XML element ValidateWorkflowMarkupAndCreateSupportObjectsResponse in the HTTP response body.
  • The Metasploit check method distinguishes patched vs vulnerable systems by inspecting compiler error messages: a patched system returns a compiler error matching 'is not a valid language-independent type name'.
  • The exploit uses Windows NTLM authentication to reach the SharePoint endpoint; monitor for NTLM-authenticated POST requests to /_vti_bin/webpartpages.asmx.
  • Exploit artifacts are left on disk and evidence appears in logs (IOC_IN_LOGS, ARTIFACTS_ON_DISK) — check SharePoint ULS logs and the filesystem for dropped executables.
  • ·The Metasploit module defaults to RPORT 443 with SSL enabled; detection rules should cover both HTTP (80) and HTTPS (443) traffic to the SharePoint endpoint.
  • ·The module requires valid Windows domain credentials (USERNAME, PASSWORD, DOMAIN) to authenticate; unauthenticated exploitation is not demonstrated in the available sources.
  • ·The Nuclei template requires the requests_ntlm Python package and valid credentials; without them it falls back to unauthenticated requests which may not succeed.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
vulncheck9.8CRITICAL
cisa9.8CRITICAL
vendor_msrc9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.