Advisory

PYSEC-2021-17

Also known as: CVE-2021-31800, GHSA-mj63-64x7-57xf

Summary

The record has no summary.

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.

Severity

Not rated by the source.

Dates

Published
2021-05-05 11:15 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

impacket

PyPI · All systems

Affected

  • introduced 0.9.10, 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: PyPA Advisory Database · CC BY 4.0

Sources & licences