CVE-2021-31181 is a remote code execution vulnerability in Microsoft SharePoint. The vulnerability allows an authenticated attacker to execute arbitrary code on the SharePoint server by sending a specially crafted request. The flaw is due to improper validation of user-supplied data within SharePoint, enabling code injection and execution in the context of the SharePoint service.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Patch, then assume compromise.
1 valid exploit after Mallory filtered fakes, detection scripts, and README-only repos.
This repository contains a single Metasploit module targeting Microsoft SharePoint (2016 and 2019) for remote code execution via CVE-2021-31181. The exploit abuses unsafe control handling and ViewState deserialization to leak the ViewState validation key from the SharePoint web.config file, then uses it to sign a malicious ViewState payload that is deserialized by the server, resulting in arbitrary code execution. The module supports multiple payload types, including command execution, dropper, and PowerShell stager, and can deliver Meterpreter or reverse shell sessions. The exploit requires authentication (either credentials or a valid session cookie) and interacts with the SharePoint SOAP endpoint '/_vti_bin/WebPartPages.asmx'. The code is written in Ruby and is fully integrated into the Metasploit framework, making it weaponized and highly customizable.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.