GitHub Advisoryadvisory · PyPI

GHSA-mj63-64x7-57xf Path traversal in impacket

CRITICAL Published 2021-06-18 Modified 2024-09-23 Official page ↗
Aliases
CVE-2021-31800
Ecosystem
PyPI
Packages
impacket
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-22
Reviewed
2021-05-19

Affected packages

• PyPI impacket: < 0.9.23 → fixed in 0.9.23

Description

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.

Related

Alias · CVE (1)

  • CVE-2021-31800 Multiple path traversal vulnerabilities exist in smbserver.py in Impacket through 0.9.22. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References