p PatchFirst

CVE-2021-31800

CVE-2021-31800

CVSS 9.8 · Critical · EPSS 19.4% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

apk list -I -o py3-impacket

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

This page shows selected source facts. See the linked advisories for the complete description and affected versions.

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.

Published
Updated

Fixes in distributions

Stack: system · python

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • py3-impacket Alpine 3.14

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.15

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.16

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.17

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.18

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.19

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.20

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.21

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.22

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.23

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • py3-impacket Alpine 3.24

    Affected ranges
    • ECOSYSTEM: < 0.9.23-r0

    Update to 0.9.23-r0

  • impacket Debian 12

    Affected ranges
    • ECOSYSTEM: < 0.9.22-2

    Update to 0.9.22-2

  • impacket Debian 13

    Affected ranges
    • ECOSYSTEM: < 0.9.22-2

    Update to 0.9.22-2

  • impacket Debian 14

    Affected ranges
    • ECOSYSTEM: < 0.9.22-2

    Update to 0.9.22-2

  • impacket PyPI

    Versions
    • 0.9.10
    • 0.9.11
    • 0.9.12
    • 0.9.13
    • 0.9.14
    • 0.9.15
    All versions (12)
    • 0.9.17
    • 0.9.18
    • 0.9.19
    • 0.9.20
    • 0.9.21
    • 0.9.22
    Affected ranges
    • ECOSYSTEM: < 0.9.23

    Update to 0.9.23

  • impacket PyPI

    Versions
    • 0.9.10
    • 0.9.11
    • 0.9.12
    • 0.9.13
    • 0.9.14
    • 0.9.15
    All versions (12)
    • 0.9.17
    • 0.9.18
    • 0.9.19
    • 0.9.20
    • 0.9.21
    • 0.9.22
    Affected ranges
    • GIT: < 49c643bf66620646884ed141c94e5fdd85bcdd2f
    • ECOSYSTEM: ≥ 0.9.10, < 0.9.23

    Update to 0.9.23

  • impacket Ubuntu 16.04 LTS

    Versions
    • 0.9.12-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • impacket Ubuntu 18.04 LTS

    Versions
    • 0.9.15-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • impacket Ubuntu 20.04 LTS

    Versions
    • 0.9.15-5
    • 0.9.20-4
    • 0.9.20-5
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • impacket Ubuntu 22.04 LTS

    Versions
    • 0.9.22-2
    • 0.9.24-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • impacket Ubuntu 24.04 LTS

    Versions
    • 0.11.0-1
    • 0.11.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • impacket Ubuntu 25.10

    Versions
    • 0.12.0-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • impacket Ubuntu 26.10

    Versions
    • 0.13.0-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →