CVE-2021-31800
Path traversal in impacket
9.8
CRITICAL
CVSS 3.1
EPSS 39.8%
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.
How to fix CVE-2021-31800
To remediate CVE-2021-31800, upgrade the affected package to a fixed version below.
- —upgrade to 0.9.22-2 or later
- —upgrade to 0.9.23 or later
- —upgrade to 49c643bf66620646884ed141c94e5fdd85bcdd2f or later
Is CVE-2021-31800 being exploited?
Moderate — EPSS is 39.8%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (3)
- from 0, < 0.9.22-2
- from 0, < 0.9.23
- from 0, < 49c643bf66620646884ed141c94e5fdd85bcdd2f | >= 0.9.10, < 0.9.23
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |