Critical severity9.8NVD Advisory· Published May 5, 2021· Updated Jun 17, 2026
CVE-2021-31800
CVE-2021-31800
Description
Multiple path traversal vulnerabilities exist in smbserver.py in Impacket through 0.9.22. An attacker that connects to a running smbserver instance can list and write to arbitrary files via ../ directory traversal. This could potentially be abused to achieve arbitrary code execution by replacing /etc/shadow or an SSH authorized key.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
impacketPyPI | < 0.9.23 | 0.9.23 |
Affected products
7cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
- Impacket/Impacketdescription
- ghsa-coords2 versions
< 0.9.23+ 1 more
- (no CPE)range: < 0.9.23
- (no CPE)range: < 0.11.0-3.3
Patches
Vulnerability mechanics
References
17- github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2fnvdPatchThird Party AdvisoryWEB
- github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.pynvdThird Party AdvisoryWEB
- github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.pynvdThird Party AdvisoryWEB
- github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.pynvdThird Party AdvisoryWEB
- github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.pynvdThird Party AdvisoryWEB
- github.com/SecureAuthCorp/impacket/releasesnvdRelease NotesThird Party AdvisoryWEB
- github.com/advisories/GHSA-mj63-64x7-57xfghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-31800ghsaADVISORY
- github.com/SecureAuthCorp/impacket/commit/99bd29e3995c254e2d6f6c2e3454e4271665955aghsaWEB
- github.com/SecureAuthCorp/impacket/releases/tag/impacket_0_9_23ghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/impacket/PYSEC-2021-17.yamlghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3ghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCGghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/nvd
News mentions
0No linked articles in our index yet.