Vulnerability Details : CVE-2021-31800
Potential exploit
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.
Vulnerability category: Directory traversal
Products affected by CVE-2021-31800
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
- cpe:2.3:a:secureauth:impacket:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-31800
39.21%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 97 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-31800
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST | |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2021-31800
-
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-31800
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/
[SECURITY] Fedora 32 Update: python-impacket-0.9.22-3.fc32 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/
[SECURITY] Fedora 33 Update: python-impacket-0.9.22-3.fc33 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
-
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485
impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHubThird Party Advisory
-
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/
[SECURITY] Fedora 34 Update: python-impacket-0.9.22-3.fc34 - package-announce - Fedora Mailing-ListsMailing List;Third Party Advisory
-
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876
impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHubThird Party Advisory
-
https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f
Merge pull request #1066 from omriinbar/master · SecureAuthCorp/impacket@49c643b · GitHubPatch;Third Party Advisory
-
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958
impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHubThird Party Advisory
-
https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008
impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHubThird Party Advisory
-
https://github.com/SecureAuthCorp/impacket/releases
Releases · SecureAuthCorp/impacket · GitHubRelease Notes;Third Party Advisory
Jump to