CVE-2021-31800

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-31800
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31800.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-31800
Aliases
Downstream
Related
Published
2021-05-05T11:15:07Z
Modified
2025-09-24T10:55:53.099428Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/fortra/impacket

Affected ranges

Type
GIT
Repo
https://github.com/fortra/impacket
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
GIT
Repo
https://github.com/secureauthcorp/impacket
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected

Affected versions

Other

impacket_0_9_13
impacket_0_9_14
impacket_0_9_15
impacket_0_9_17
impacket_0_9_18
impacket_0_9_19
impacket_0_9_20
impacket_0_9_21
impacket_0_9_22