9.8critical
Path traversal in impacket
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 18.9% (higher than 97% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-mj63-64x7-57xfPYSEC-2021-17
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| impacket (PyPI) | before 0.9.23, before 49c643bf66620646884ed141c94e5fdd85bcdd2f, from 0.9.10 before 0.9.23 | GitHub Advisory Database, PyPA Advisory Database |
| secureauth impacket | up to 0.9.22 | NVD |
| fedoraproject fedora | 32, 33, 34 | NVD |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Multiple path traversal vulnerabilities exist in smbserver.py in Impacket before 0.9.23. 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.
NVD (es)
Se presentan múltiples vulnerabilidades de salto de ruta en el archivo smbserver.py en Impacket versiones hasta 0.9.22. Un atacante que se conecta a una instancia de smbserver en ejecución puede enumerar y escribir en archivos arbitrarios por medio de un salto de directorio ../. Esto podría potencialmente ser abusado para lograr una ejecución de código arbitraria al reemplazar /etc/shadow o una clave SSH autorizada
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31800 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mj63-64x7-57xf changed 2025-02-13 | CC-BY-4.0 |
| NVD | CVE-2021-31800 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-17 changed 2023-11-08 | CC-BY-4.0 |