Advisory

GHSA-mj63-64x7-57xf

Also known as: CVE-2021-31800, PYSEC-2021-17

Summary

Path traversal in impacket

Details

Multiple path traversal vulnerabilities exist in smbserver.py in Impacket before 0.9.23. 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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-06-18 18:43 UTC
Modified
2025-02-13 05:31 UTC

Affected packages and fixes

impacket

PyPI · All systems

Affected

  • introduced 0, fixed 0.9.23 (ecosystem)

Fixed versions

0.9.23

Fix

  • Fixed version 0.9.23
    pip install --upgrade impacket==0.9.23

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences