CVE-2021-31800

Source
https://cve.org/CVERecord?id=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:07.397Z
Modified
2026-03-10T23:34:39.356711Z
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
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "0.9.22"
        }
    ]
}

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

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-31800.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "32"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "33"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "34"
            }
        ]
    }
]