CVE-2021-31800Path Traversal in Impacket

CWE-22Path Traversal5 documents4 sources
Severity
9.8CRITICALNVD
EPSS
39.8%
top 2.66%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 5
Latest updateJun 18

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 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages4 packages

debiandebian/impacket< impacket 0.9.22-2 (bookworm)
PyPIsecureauth/impacket< 0.9.23
Debiansecureauth/impacket< 0.9.22-2+3

Also affects: Fedora 32, 33, 34

Patches

🔴Vulnerability Details

3
GHSA
Path traversal in impacket2021-06-18
OSV
Path traversal in impacket2021-06-18
OSV
CVE-2021-31800: Multiple path traversal vulnerabilities exist in smbserver2021-05-05

📋Vendor Advisories

1
Debian
CVE-2021-31800: impacket - Multiple path traversal vulnerabilities exist in smbserver.py in Impacket throug...2021
CVE-2021-31800 — Path Traversal in Secureauth Impacket | cvebase