cbcvebase.
CVE-2021-31800
published 2021-05-05

CVE-2021-31800: 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…

PriorityP269critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
19.26%
97.0th percentile
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

10 ranges
VendorProductVersion rangeFixed in
debianimpacket< impacket 0.9.22-2 (bookworm)impacket 0.9.22-2 (bookworm)
fedoraprojectfedora
fedoraprojectfedora
fedoraprojectfedora
secureauthimpacket<= 0.9.22
secureauthimpacket>= 0 < 0.9.22-20.9.22-2
secureauthimpacket>= 0 < 0.9.22-20.9.22-2
secureauthimpacket>= 0 < 0.9.22-20.9.22-2
secureauthimpacket>= 0 < 0.9.22-20.9.22-2
secureauthimpacket>= 0 < 0.9.230.9.23

Detection & IOCsextracted from sources · hover to see the quote

  • Path traversal attempts using '../' sequences in SMB requests to a running Impacket smbserver instance should be flagged as malicious
  • Monitor for unauthorized writes to sensitive files such as /etc/shadow or SSH authorized_keys files, which may indicate exploitation of this vulnerability for privilege escalation or persistence
  • ·Vulnerability affects Impacket smbserver.py through version 0.9.22 only; fixed in 0.9.22-2 (Debian packages). Verify the running Impacket version before applying detection logic.
  • ·The vulnerability is scoped as local (attacker must be able to connect to the running smbserver instance), limiting remote exploitation surface.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.