CVE-2021-31800
Critical
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.
SeverityCritical
CVSS9.8
Exploit probability—
Product
Secureauth Impacket
PublishedMay 5, 2021
First seenMay 5, 2021
How to fix
Update
- impacket0.9.23 or later
Vendor advisories
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| secureauth impacket | v ≤ 0.9.22 | — |
| fedoraproject fedora | 32, 33, 34 | — |
| impacketPyPI | v < 0.9.23, 0.9.10 ≤ v < 0.9.23 | 0.9.23 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.