Vulnerabilities / CVE-2021-31800

critical

CVE-2021-31800

Multiple path traversal vulnerabilities exist in smbserver.py in Impac ...

Published Modified CWE 22
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.

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.

Affected packages and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory pipimpacket0.9.23
alpine 3.14py3-impacket0.9.23-r0
alpine 3.15py3-impacket0.9.23-r0
alpine 3.16py3-impacket0.9.23-r0
alpine 3.17py3-impacket0.9.23-r0
alpine 3.18py3-impacket0.9.23-r0
alpine 3.19py3-impacket0.9.23-r0
alpine 3.20py3-impacket0.9.23-r0
alpine 3.21py3-impacket0.9.23-r0
alpine 3.22py3-impacket0.9.23-r0
alpine 3.23py3-impacket0.9.23-r0
alpine 3.24py3-impacket0.9.23-r0
Show all 20 entries from 20 sources
SourcePackageFixed in
pip::GitHub Security Advisory pipimpacket0.9.23
alpine 3.14py3-impacket0.9.23-r0
alpine 3.15py3-impacket0.9.23-r0
alpine 3.16py3-impacket0.9.23-r0
alpine 3.17py3-impacket0.9.23-r0
alpine 3.18py3-impacket0.9.23-r0
alpine 3.19py3-impacket0.9.23-r0
alpine 3.20py3-impacket0.9.23-r0
alpine 3.21py3-impacket0.9.23-r0
alpine 3.22py3-impacket0.9.23-r0
alpine 3.23py3-impacket0.9.23-r0
alpine 3.24py3-impacket0.9.23-r0
alpine edgepy3-impacket0.9.23-r0
debian 10impacketno fix listed
debian 11impacket0.9.22-2
debian 12impacket0.9.22-2
debian 13impacket0.9.22-2
debian 14impacket0.9.22-2
debian 9impacketno fix listed
echoimpacket0.9.22-2

References

All 18 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.