{"id":"PYSEC-2021-17","details":"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.","aliases":["CVE-2021-31800","GHSA-mj63-64x7-57xf"],"modified":"2023-11-08T04:05:50.911520Z","published":"2021-05-05T11:15:00Z","references":[{"type":"WEB","url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008"},{"type":"WEB","url":"https://github.com/SecureAuthCorp/impacket/releases"},{"type":"WEB","url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876"},{"type":"WEB","url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958"},{"type":"FIX","url":"https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f"},{"type":"WEB","url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-mj63-64x7-57xf"}],"affected":[{"package":{"name":"impacket","ecosystem":"PyPI","purl":"pkg:pypi/impacket"},"ranges":[{"type":"GIT","repo":"https://github.com/SecureAuthCorp/impacket","events":[{"introduced":"0"},{"fixed":"49c643bf66620646884ed141c94e5fdd85bcdd2f"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0.9.10"},{"fixed":"0.9.23"}]}],"versions":["0.9.10","0.9.11","0.9.12","0.9.13","0.9.14","0.9.15","0.9.17","0.9.18","0.9.19","0.9.20","0.9.21","0.9.22"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/impacket/PYSEC-2021-17.yaml"}}],"schema_version":"1.7.3"}