VDB

CVE-2021-31800

CVE-2021-31800 PUBLISHED CVSS 9.800000190734863 CRITICAL

Path traversal in impacket

Reported by mitre · Published May 5, 2021

impacket is fixed in 0.9.23 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
impacketPyPI0.9.23
py3-impacketAlpine0.9.23-r0
impacketsecureauth0.9.22

Risk scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
alpinepy3-impacket0
PyPIimpacket0
archimpacket0
n/an/a*

Timeline

  • May 5, 2021 EPSS Score (30 in total, the first dated here)
  • May 5, 2021 CVE Published
  • Feb 13, 2025 CVE Updated
  • Mar 9, 2026 Security Advisory
  • Aug 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-31800
vulnetix vdb fixes CVE-2021-31800

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-31800/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›