—
PYSEC-2021-17
Quick fix
PYSEC-2021-17 — impacket: upgrade to the fixed version with the command below.
pip install --upgrade 'impacket>=49c643bf66620646884ed141c94e5fdd85bcdd2f'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/impacket
Introduced in:
0Fixed in: 49c643bf66620646884ed141c94e5fdd85bcdd2fFix
pip install --upgrade 'impacket>=49c643bf66620646884ed141c94e5fdd85bcdd2f'References
- https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008[WEB]
- https://github.com/SecureAuthCorp/impacket/releases[WEB]
- https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876[WEB]
- https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958[WEB]
- https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f[FIX]
- https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/[WEB]
- https://github.com/advisories/GHSA-mj63-64x7-57xf[ADVISORY]