{"cve":"CVE-2021-31800","nvd":{"published":"2021-05-05T11:15:07.397","modified":"2026-06-17T03:52:15.463","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-22"],"references":["https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008","https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958","https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485","https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876","https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f"],"products":["fedoraproject:fedora","secureauth:impacket"],"source":"nvd","synced_at":"2026-10-19T21:18:09.669877188+00:00"},"epss":{"cve":"CVE-2021-31800","score":0.19409,"percentile":0.97362,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-mj63-64x7-57xf","url":"https://osv.dev/vulnerability/GHSA-mj63-64x7-57xf","summary":"Path traversal in impacket","modified":"2025-02-13T05:31:13.158552Z","packages":[{"ecosystem":"PyPI","name":"impacket","purl":"pkg:pypi/impacket","ranges":["<0.9.23"],"fixed":["0.9.23"]}]},{"id":"PYSEC-2021-17","url":"https://osv.dev/vulnerability/PYSEC-2021-17","summary":"","modified":"2023-11-08T04:05:50.911520Z","packages":[{"ecosystem":"PyPI","name":"impacket","purl":"pkg:pypi/impacket","ranges":[">=0.9.10 <0.9.23"],"fixed":["0.9.23"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}