GHSA-mj63-64x7-57xf

Suggest an improvement
Source
https://github.com/advisories/GHSA-mj63-64x7-57xf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-mj63-64x7-57xf/GHSA-mj63-64x7-57xf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mj63-64x7-57xf
Aliases
Published
2021-06-18T18:43:14Z
Modified
2024-09-23T17:24:45.020082Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 9.3 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
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.

References

Affected packages

PyPI / impacket

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.9.23

Affected versions

0.*

0.9.10
0.9.11
0.9.12
0.9.13
0.9.14
0.9.15
0.9.17
0.9.18
0.9.19
0.9.20
0.9.21
0.9.22

Ecosystem specific

{
    "affected_functions": [
        "impacket.smbserver.findFirst2",
        "impacket.smbserver.queryPathInformation",
        "impacket.smbserver.SMBCommands.smbComNtCreateAndX"
    ]
}