CVE-2021-31800 is a path traversal vulnerability in smbserver.py in Impacket through version 0.9.22. The vulnerability allows an attacker connected to a running smbserver instance to list and write to arbitrary files on the server by exploiting directory traversal sequences (../). This can be leveraged to overwrite sensitive files such as /etc/shadow or SSH authorized_keys, potentially leading to privilege escalation or arbitrary code execution.
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 provides a proof-of-concept exploit for CVE-2021-31800, a critical path traversal vulnerability in Fortra's Impacket smbserver.py. The exploit allows an authenticated attacker to read and write arbitrary files on the SMB server by abusing directory traversal (e.g., using '../' in file paths). The repository is structured with two main environments: 'exploit_env' (containing a patched smbclient.py for exploitation) and 'vulnerable_env' (a Dockerized vulnerable SMB server). The exploit is demonstrated by connecting to the SMB server and issuing commands to traverse directories and access files outside the shared folder. The main exploit logic resides in 'exploit_env/patched/smbclient.py', which is a modified version of Impacket's smbclient.py, enabling the path traversal attack. The repository includes Dockerfiles and Makefiles to easily set up both the exploit and vulnerable environments for testing. The attack vector is network-based, targeting SMB (port 445). No hardcoded IPs or domains are present, but the exploit expects the SMB server to be accessible on the local network.
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.