Path Traversal in Secureauth Impacket
CVE-2021-31800
- CVSS v3
- 9.8 Critical
- Public exploits
- 2 repositories
- EPSS
- 0.194 · 97.4th percentile
- Published
- 2021-05-05
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.194, 97.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Secureauth Impacket
- Fedoraproject Fedora — versions 32, 33, 34
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- p0dalirius/CVE-2021-31800-Impacket-SMB-Server-Arbitrary-file-read-write (11 stars, last pushed 2023-01-19): A path traversal in smbserver.py allows an attacker to read/write arbitrary files on the server.
- Louzogh/CVE-2021-31800 (2 stars, last pushed 2022-09-02): CVE-2021-31800 POC
Also mentioned in 11 other repositories (20142995/nuclei-templates, ARPSyndicate/cvemon, ARPSyndicate/kenzer-templates, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/SecureAuthCorp/impacket/releases (Third Party Advisory, Release Notes)
- github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec62… (Third Party Advisory)
- github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec62… (Third Party Advisory)
- github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec62… (Third Party Advisory)
- github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec62… (Third Party Advisory)
- github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcd… (Patch, Third Party Advisory)
- FEDORA-2021-52dfb60726 (vendor-advisory)
- FEDORA-2021-ab09c9a7a1 (vendor-advisory)
- FEDORA-2021-888ccfd5b6 (vendor-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.