CVE-2021-31800Secureauth Impacket
Critical 9.8 No auth neededHigh EPSS
Follow: this CVE · Secureauth · Secureauth Impacket We alert you by email or Slack (account required).
- Priority
- 76
- CVSS 3.1
- 9.8
- EPSS
- 19.4% probability of exploitation in 30 days · percentile 98
- Auth required
- No
- Published
- May 5, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Impacket.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | impacket |
< 0.9.23 |
0.9.23 |
pip install "impacket>=0.9.23" |
| PyPI | impacket |
≥ 0.9.10 < 0.9.23 |
0.9.23 |
pip install "impacket>=0.9.23" |
Per OSV / GitHub Advisories (GHSA-mj63-64x7-57xf, PYSEC-2021-17). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| secureauth | impacket | ≤ 0.9.22 |
| fedoraproject | fedora | 32 |
| fedoraproject | fedora | 33 |
| fedoraproject | fedora | 34 |
Official advisories
- python313-impacket-0.13.1-1.2 on GA media · SUSE · openSUSE-SU-2026:12011-1 · Oct 4, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Third Party Advisory
- github.com Third Party Advisory
- github.com Third Party Advisory
- github.com Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org