CVE-2021-31800: Path Traversal

Published May 5, 2021
·
Updated

Multiple path traversal vulnerabilities exist in smbserver.py in Impacket before 0.9.23. 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.

Other sources

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.

Affected Software

5 affected componentsFixes available
pip/impacket<0.9.23
0.9.23
SecureAuth Impacket<=0.9.22
fedoraproject fedora=32
fedoraproject fedora=33
fedoraproject fedora=34

Event History

May 5, 2021
CVE Published
via MITRE·10:24 AM
Data Sourced
via MITRE·10:24 AM
Description
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 18, 2021
Advisory Published
06:43 PM

Frequently Asked Questions

1

What is the severity of CVE-2021-31800?

CVE-2021-31800 is classified as a high-severity vulnerability due to its potential for arbitrary code execution.

2

How do I fix CVE-2021-31800?

To mitigate CVE-2021-31800, upgrade Impacket to version 0.9.23 or later.

3

What software is affected by CVE-2021-31800?

CVE-2021-31800 affects Impacket versions prior to 0.9.23 as well as Fedora versions 32, 33, and 34.

4

Can CVE-2021-31800 allow remote attacks?

Yes, CVE-2021-31800 can allow remote attackers to access and manipulate files on the server.

5

What specific component is vulnerable in CVE-2021-31800?

The vulnerability exists in the smbserver.py component of Impacket.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203