Directory Traversal Affecting py3-impacket package, versions <0.9.23-r0


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
18.92% (98th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE317-PY3IMPACKET-3143497
  • published23 Oct 2021
  • disclosed5 May 2021

Introduced: 5 May 2021

CVE-2021-31800  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade Alpine:3.17 py3-impacket to version 0.9.23-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-impacket package and not the py3-impacket package as distributed by Alpine. See How to fix? for Alpine:3.17 relevant fixed versions and status.

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 Base Scores

version 3.1