CVEfocus › CVE database › CVE-2021-31800

CVE-2021-31800

CVSS 9.8 CriticalEPSS 19.4% (higher than 98% of CVEs)Published 2021-05-05Updated 2024-08-03Assigner: mitre

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.

What to do

Likely to be exploited: EPSS gives a 19% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from Alpine, Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

15Fixed
1Fix pending
3Under investigation
5Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10impacketFix pendingUBUNTU-CVE-2021-31800
Ubuntu 26.04impacketUnder investigationUBUNTU-CVE-2021-31800
Ubuntu 25.10impacketWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31800
Ubuntu 24.04impacketUnder investigationUBUNTU-CVE-2021-31800
Ubuntu 22.04impacketUnder investigationUBUNTU-CVE-2021-31800
Ubuntu 20.04impacketWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31800
Ubuntu 18.04impacketWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31800
Ubuntu 16.04impacketWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-31800
Ubuntu 14.04impacketWill not fix
Ubuntu decided not to fix this in this release
Debian 14impacketFixed0.9.22-2DEBIAN-CVE-2021-31800
Debian 13impacketFixed0.9.22-2DEBIAN-CVE-2021-31800
Debian 12impacketFixed0.9.22-2DEBIAN-CVE-2021-31800
Alpine Linux 3.24py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.23py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.22py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.21py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.20py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.19py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.18py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.17py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.16py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.15py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
Alpine Linux 3.14py3-impacketFixed0.9.23-r0ALPINE-CVE-2021-31800
PyPI libraryimpacketFixed0.9.23GHSA-mj63-64x7-57xf

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.