{"id":"CVE-2021-31800","published":"2021-05-05T10:24:10Z","modified":"2024-08-03T23:10:31Z","title":"Multiple path traversal vulnerabilities exist in smbserver.py in Impacket through 0.9.22","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.19409,"percentile":0.97427,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/SecureAuthCorp/impacket/releases","tags":["x_refsource_MISC"]},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876","tags":["x_refsource_MISC"]},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485","tags":["x_refsource_MISC"]},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008","tags":["x_refsource_MISC"]},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958","tags":["x_refsource_MISC"]},{"url":"https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":19.49},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2022-08-28","earliestUrl":"https://github.com/p0dalirius/CVE-2021-31800-Impacket-SMB-Server-Arbitrary-file-read-write","repos":[{"name":"p0dalirius/CVE-2021-31800-Impacket-SMB-Server-Arbitrary-file-read-write","url":"https://github.com/p0dalirius/CVE-2021-31800-Impacket-SMB-Server-Arbitrary-file-read-write","stars":11,"created":"2022-08-28"},{"name":"Louzogh/CVE-2021-31800","url":"https://github.com/Louzogh/CVE-2021-31800","stars":2,"created":"2022-09-02"}]},"first":{"date":"2022-08-28","source":"PoC-in-GitHub","url":"https://github.com/p0dalirius/CVE-2021-31800-Impacket-SMB-Server-Arbitrary-file-read-write"},"provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"impacket","vulnerableRanges":["<0.9.23",">=0.9.10, <0.9.23"],"patched":["0.9.23"],"from":["GHSA-mj63-64x7-57xf","PYSEC-2021-17"],"provenance":"source"}],"summary":{"text":"Multiple path traversal flaws exist in smbserver.py, a component of Impacket through version 0.9.22. An attacker who can connect to a running smbserver instance can use ../ sequences to list and write arbitrary files, potentially achieving code execution by replacing files such as /etc/shadow or an SSH authorized key.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:42:51Z"},"euvd":{"id":"EUVD-2021-0100","exploited":false,"provenance":"source"}}