{"api_version":"1","generated_at":"2026-07-23T17:39:06+00:00","cve":"CVE-2021-31800","urls":{"html":"https://cve.report/CVE-2021-31800","api":"https://cve.report/api/cve/CVE-2021-31800.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31800","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31800"},"summary":{"title":"CVE-2021-31800","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-05-05 11:15:00","updated_at":"2023-11-07 03:35:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f","name":"https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f","refsource":"MISC","tags":[],"title":"Merge pull request #1066 from omriinbar/master · SecureAuthCorp/impacket@49c643b · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008","name":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008","refsource":"MISC","tags":[],"title":"impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/","name":"FEDORA-2021-888ccfd5b6","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 33 Update: python-impacket-0.9.22-3.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/SecureAuthCorp/impacket/releases","name":"https://github.com/SecureAuthCorp/impacket/releases","refsource":"MISC","tags":[],"title":"Releases · SecureAuthCorp/impacket · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/","name":"FEDORA-2021-888ccfd5b6","refsource":"","tags":[],"title":"[SECURITY] Fedora 33 Update: python-impacket-0.9.22-3.fc33 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/","name":"FEDORA-2021-52dfb60726","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: python-impacket-0.9.22-3.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/","name":"FEDORA-2021-ab09c9a7a1","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 32 Update: python-impacket-0.9.22-3.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485","name":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485","refsource":"MISC","tags":[],"title":"impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/","name":"FEDORA-2021-52dfb60726","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: python-impacket-0.9.22-3.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/","name":"FEDORA-2021-ab09c9a7a1","refsource":"","tags":[],"title":"[SECURITY] Fedora 32 Update: python-impacket-0.9.22-3.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958","name":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958","refsource":"MISC","tags":[],"title":"impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876","name":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876","refsource":"MISC","tags":[],"title":"impacket/smbserver.py at cb6d43a677c338db930bc4e9161620832c1ec624 · SecureAuthCorp/impacket · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31800","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31800","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"31800","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"32","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31800","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"33","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31800","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31800","vulnerable":"1","versionEndIncluding":"0.9.22","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"secureauth","cpe5":"impacket","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"31800","vulnerable":"1","versionEndIncluding":"0.9.22:","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"secureauth","cpe5":"impacket","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-31800","qid":"180197","title":"Debian Security Update for impacket (CVE-2021-31800)"},{"cve":"CVE-2021-31800","qid":"281181","title":"Fedora Security Update for python (FEDORA-2021-ab09c9a7a1)"},{"cve":"CVE-2021-31800","qid":"281182","title":"Fedora Security Update for python (FEDORA-2021-888ccfd5b6)"},{"cve":"CVE-2021-31800","qid":"281183","title":"Fedora Security Update for python (FEDORA-2021-52dfb60726)"},{"cve":"CVE-2021-31800","qid":"501903","title":"Alpine Linux Security Update for py3-impacket"},{"cve":"CVE-2021-31800","qid":"505308","title":"Alpine Linux Security Update for py3-impacket"},{"cve":"CVE-2021-31800","qid":"691124","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for py (b692a49c-9ae7-4958-af21-cbf8f5b819ea)"},{"cve":"CVE-2021-31800","qid":"982201","title":"Python (pip) Security Update for impacket (GHSA-mj63-64x7-57xf)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-31800","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://github.com/SecureAuthCorp/impacket/releases","refsource":"MISC","name":"https://github.com/SecureAuthCorp/impacket/releases"},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876","refsource":"MISC","name":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876"},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485","refsource":"MISC","name":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485"},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008","refsource":"MISC","name":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008"},{"url":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958","refsource":"MISC","name":"https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958"},{"refsource":"MISC","name":"https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f","url":"https://github.com/SecureAuthCorp/impacket/commit/49c643bf66620646884ed141c94e5fdd85bcdd2f"},{"refsource":"FEDORA","name":"FEDORA-2021-52dfb60726","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG/"},{"refsource":"FEDORA","name":"FEDORA-2021-ab09c9a7a1","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3/"},{"refsource":"FEDORA","name":"FEDORA-2021-888ccfd5b6","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6/"}]}},"nvd":{"publishedDate":"2021-05-05 11:15:00","lastModifiedDate":"2023-11-07 03:35:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:secureauth:impacket:*:*:*:*:*:*:*:*","versionEndIncluding":"0.9.22","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"31800","Ordinal":"207094","Title":"CVE-2021-31800","CVE":"CVE-2021-31800","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"31800","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"31800","Ordinal":"2","NoteData":"2021-05-05","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"31800","Ordinal":"3","NoteData":"2021-05-15","Type":"Other","Title":"Modified"}]}}}