UBUNTU-CVE-2021-31800

Source
https://ubuntu.com/security/CVE-2021-31800
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31800.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2021-31800
Upstream
Published
2021-05-05T11:15:00Z
Modified
2026-01-20T17:26:24.251986Z
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
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:16.04:LTS
impacket

Package

Name
impacket
Purl
pkg:deb/ubuntu/impacket@0.9.12-1?arch=source&distro=xenial

Affected ranges

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

Affected versions

0.*
0.9.12-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.9.12-1",
            "binary_name": "python-impacket"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31800.json"
Ubuntu:18.04:LTS
impacket

Package

Name
impacket
Purl
pkg:deb/ubuntu/impacket@0.9.15-1?arch=source&distro=bionic

Affected ranges

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

Affected versions

0.*
0.9.15-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.9.15-1",
            "binary_name": "python-impacket"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31800.json"
Ubuntu:20.04:LTS
impacket

Package

Name
impacket
Purl
pkg:deb/ubuntu/impacket@0.9.20-5?arch=source&distro=focal

Affected ranges

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

Affected versions

0.*
0.9.15-5
0.9.20-4
0.9.20-5

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.9.20-5",
            "binary_name": "python3-impacket"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31800.json"
Ubuntu:22.04:LTS
impacket

Package

Name
impacket
Purl
pkg:deb/ubuntu/impacket@0.9.24-1?arch=source&distro=jammy

Affected ranges

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

Affected versions

0.*
0.9.22-2
0.9.24-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.9.24-1",
            "binary_name": "python3-impacket"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31800.json"
Ubuntu:24.04:LTS
impacket

Package

Name
impacket
Purl
pkg:deb/ubuntu/impacket@0.11.0-2?arch=source&distro=noble

Affected ranges

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

Affected versions

0.*
0.11.0-1
0.11.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.11.0-2",
            "binary_name": "python3-impacket"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31800.json"
Ubuntu:25.10
impacket

Package

Name
impacket
Purl
pkg:deb/ubuntu/impacket@0.12.0-3?arch=source&distro=questing

Affected ranges

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

Affected versions

0.*
0.12.0-3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "0.12.0-3",
            "binary_name": "python3-impacket"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-31800.json"