CVE-2021-31800

Summary

CVECVE-2021-31800
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-05-05 11:15:00 UTC
Updated2023-11-07 03:35:00 UTC
DescriptionMultiple 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.

Risk And Classification

Problem Types: CWE-22

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Fedoraproject Fedora 32 All All All
Operating System Fedoraproject Fedora 33 All All All
Operating System Fedoraproject Fedora 34 All All All
Application Secureauth Impacket All All All All
Application Secureauth Impacket All All All All

References

ReferenceSourceLinkTags
Merge pull request #1066 from omriinbar/master · SecureAuthCorp/impacket@49c643b · GitHub MISC github.com
impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHub MISC github.com
[SECURITY] Fedora 33 Update: python-impacket-0.9.22-3.fc33 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
Releases · SecureAuthCorp/impacket · GitHub MISC github.com
[SECURITY] Fedora 33 Update: python-impacket-0.9.22-3.fc33 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 34 Update: python-impacket-0.9.22-3.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
[SECURITY] Fedora 32 Update: python-impacket-0.9.22-3.fc32 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHub MISC github.com
[SECURITY] Fedora 34 Update: python-impacket-0.9.22-3.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
[SECURITY] Fedora 32 Update: python-impacket-0.9.22-3.fc32 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHub MISC github.com
impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 180197 Debian Security Update for impacket (CVE-2021-31800)
  • 281181 Fedora Security Update for python (FEDORA-2021-ab09c9a7a1)
  • 281182 Fedora Security Update for python (FEDORA-2021-888ccfd5b6)
  • 281183 Fedora Security Update for python (FEDORA-2021-52dfb60726)
  • 501903 Alpine Linux Security Update for py3-impacket
  • 505308 Alpine Linux Security Update for py3-impacket
  • 691124 Free Berkeley Software Distribution (FreeBSD) Security Update for py (b692a49c-9ae7-4958-af21-cbf8f5b819ea)
  • 982201 Python (pip) Security Update for impacket (GHSA-mj63-64x7-57xf)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report