CVE-2021-31800: Path traversal in impacket
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.97115%
CWE
Published
6/18/2021
Updated
9/23/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
impacket | pip | < 0.9.23 | 0.9.23 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient path validation in file operation functions. The advisory explicitly references line numbers in smbserver.py
related to these functions. The fix commit (49c643b) introduced path prefix checks, confirming that these functions previously lacked traversal protection. Functions like openFile
used os.path.join
with user-controlled filenames, while findFirst2
processed search patterns without sanitization. The high confidence comes from direct code references in advisories and the nature of the vulnerability (CWE-22).