Multiple path traversal vulnerabilities exist in smbserver.py in Impacket through 0.9.22.
Priority MEDIUM 60CWE-22Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
EPSS 0.19409 97th percentileScored 2026-11-07
Fix Fixed impacket (PyPI): 0.9.23
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | impacket (PyPI) | before 0.9.23 | 0.9.23 | Patch available | GHSA-mj63-64x7-57xf |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- impacket (PyPI) Vendor— Affected before 0.9.23 Fixed in 0.9.23 Patch available GHSA-mj63-64x7-57xf
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:secureauth:impacket:*:*:*:*:*:*:*:* | up to 0.9.22 | Vulnerable | Secureauth |
| cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* | 32 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* | 33 | Vulnerable | Fedoraproject |
| cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* | 34 | Vulnerable | Fedoraproject |
- cpe:2.3:a:secureauth:impacket:*:*:*:*:*:*:*:* Versions up to 0.9.22 Vulnerable ·Secureauth
- cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:* Versions 32 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* Versions 33 Vulnerable ·Fedoraproject
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
Remediation
- Fix · GHSA-mj63-64x7-57xf impacket (PyPI) Fixed in 0.9.23 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2021-31800
- 2026-10-03 Alias added: GHSA-mj63-64x7-57xf
References
Advisory 10
- https://github.com/SecureAuthCorp/impacket/releases
- https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L876
- https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L3485
- https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2008
- https://github.com/SecureAuthCorp/impacket/blob/cb6d43a677c338db930bc4e9161620832c1ec624/impacket/smbserver.py#L2958
- FEDORA-2021-52dfb60726
- FEDORA-2021-ab09c9a7a1
- FEDORA-2021-888ccfd5b6
- https://nvd.nist.gov/vuln/detail/CVE-2021-31800
- https://github.com/advisories/GHSA-mj63-64x7-57xf
Other 7
- https://github.com/SecureAuthCorp/impacket/commit/99bd29e3995c254e2d6f6c2e3454e4271665955a
- https://github.com/SecureAuthCorp/impacket/releases/tag/impacket_0_9_23
- https://github.com/fortra/impacket
- https://github.com/pypa/advisory-database/tree/main/vulns/impacket/PYSEC-2021-17.yaml
- https://lists.fedoraproject.org/archives/list/[email protected]/message/IPXDPWCAPVX3UWYZ3N2T5OLBSBBUHJP6
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KRV2C5DATXBHG6TF6CEEX54KZ75THQS3
- https://lists.fedoraproject.org/archives/list/[email protected]/message/UF56LYB27LHEIFJTFHU3M75NMNNK2SCG
Sources
- CVE-2021-31800 · CVE Program
- CVE-2021-31800 · NVD
- FIRST EPSS
- GHSA-mj63-64x7-57xf · GitHub Advisory Database · CC BY 4.0
- CVE-2021-31800 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences