CVE-2021-31800
Detail
Modified After Enrichment
This CVE record has been updated after NVD enrichment efforts were completed. Enrichment data supplied by the NVD may require amendment due to these changes.
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.
Metrics
CVSS Version 4.0
CVSS Version 3.x
CVSS Version 2.0
NVD enrichment efforts reference publicly available information to associate
vector strings. CVSS information contributed by other sources is also
displayed.
CVSS 4.0 Severity and Vector Strings:
NVD assessment
not yet provided.
CVSS 3.x Severity and Vector Strings:
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0 Severity and Vector Strings:
Vector:
(AV:N/AC:L/Au:N/C:P/I:P/A:P)
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace.
We have provided these links to other web sites because they
may have information that would be of interest to you. No
inferences should be drawn on account of other sites being
referenced, or not, from this page. There may be other web
sites that are more appropriate for your purpose. NIST does
not necessarily endorse the views expressed, or concur with
the facts presented on these sites. Further, NIST does not
endorse any commercial products that may be mentioned on
these sites. Please address comments about this page to [email protected] .
Weakness Enumeration
CWE-ID
CWE Name
Source
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
NIST
Change History
7 change records found show changes
CVE Modified by MITRE
6/16/2026 11:52:15 PM
Action
Type
Old Value
New Value
Added
Affected
[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]
CVE Modified by CVE
11/21/2024 1:06:15 AM
Action
Type
Old Value
New Value
Added
Reference
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008
Added
Reference
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958
Added
Reference
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485
Added
Reference
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876
Added
Reference
https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f
Added
Reference
https://github.com/SecureAuthCorp/impacket/releases
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/
Added
Reference
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/
CVE Modified by MITRE
5/14/2024 5:01:53 AM
Action
Type
Old Value
New Value
CVE Modified by MITRE
11/06/2023 10:35:00 PM
Action
Type
Old Value
New Value
Added
Reference
MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/ [No types assigned]
Added
Reference
MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/ [No types assigned]
Added
Reference
MITRE https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/ [No types assigned]
Removed
Reference
MITRE https://lists.fedoraproject.org/archives/list/[email protected] /message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/
Removed
Reference
MITRE https://lists.fedoraproject.org/archives/list/[email protected] /message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/
Removed
Reference
MITRE https://lists.fedoraproject.org/archives/list/[email protected] /message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/
Modified Analysis by NIST
5/26/2021 9:10:18 AM
Action
Type
Old Value
New Value
Added
CPE Configuration
OR
*cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
*cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
*cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/ Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/ Mailing List, Third Party Advisory
Changed
Reference Type
https://lists.fedoraproject.org/archives/list/[email protected] /message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/ No Types Assigned
https://lists.fedoraproject.org/archives/list/[email protected] /message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/ Mailing List, Third Party Advisory
CVE Modified by MITRE
5/16/2021 12:15:09 AM
Action
Type
Old Value
New Value
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/ [No Types Assigned]
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/ [No Types Assigned]
Added
Reference
https://lists.fedoraproject.org/archives/list/[email protected] /message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/ [No Types Assigned]
Initial Analysis by NIST
5/11/2021 4:13:31 PM
Action
Type
Old Value
New Value
Added
CVSS V3.1
NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Added
CVSS V2
NIST (AV:N/AC:L/Au:N/C:P/I:P/A:P)
Added
CWE
NIST CWE-22
Added
CPE Configuration
OR
*cpe:2.3:a:secureauth:impacket:*:*:*:*:*:*:*:* versions up to (including) 0.9.22
Changed
Reference Type
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008 No Types Assigned
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008 Third Party Advisory
Changed
Reference Type
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958 No Types Assigned
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958 Third Party Advisory
Changed
Reference Type
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485 No Types Assigned
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485 Third Party Advisory
Changed
Reference Type
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876 No Types Assigned
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876 Third Party Advisory
Changed
Reference Type
https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f No Types Assigned
https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f Patch, Third Party Advisory
Changed
Reference Type
https://github.com/SecureAuthCorp/impacket/releases No Types Assigned
https://github.com/SecureAuthCorp/impacket/releases Release Notes, Third Party Advisory
Quick Info
CVE Dictionary Entry: CVE-2021-31800 NVD
Published Date: 05/05/2021 NVD
Last Modified: 06/16/2026
Source: MITRE